@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Roboto:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 0%, #1e1b4b, #050505);
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.wrapper {
    width: 100%;
    max-width: 800px;
}

.wrapper-small {
    max-width: 450px;
    margin-top: 5vh;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

h1,
h2,
h3 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
}

h2 {
    color: #818cf8;
    border-bottom: 1px solid rgba(129, 140, 248, 0.2);
    padding-bottom: 10px;
    margin-top: 40px;
}

.admin-header-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header-layout h1 {
    grid-column: 2;
    margin: 0;
}

.header-buttons {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

option {
    background: #0f172a;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.4);
}

button:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid #6366f1;
    color: #818cf8;
    font-size: 1.2rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    color: #fff;
}

.btn-profile {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid #6366f1;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
    width: auto;
}

.btn-profile:hover {
    background: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(to right, #ef4444, #b91c1c);
    width: auto;
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 0;
}

.btn-delete {
    background: linear-gradient(to right, #ef4444, #dc2626);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
    margin-top: 0;
    width: auto;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #818cf8, #c084fc);
}

.player-card h3 {
    margin-top: 0;
    text-align: left;
    color: #e2e8f0;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.clear-both {
    clear: both;
}

.status-msg {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    min-height: 24px;
}

.success {
    color: #4ade80;
}

.error {
    color: #f87171;
}

.admin-team-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.admin-team-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-team-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.clickable-team {
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-team:hover {
    color: #c084fc;
    text-decoration: underline;
}

.header-controls {
    display: flex;
    align-items: center;
}

.game-tag {
    background: #4f46e5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.date-tag {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.captain-row td {
    color: #c084fc;
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #0f172a;
    border: 1px solid #6366f1;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-top: 0;
    color: #818cf8;
}

.modal-content p {
    font-size: 1.2rem;
    margin: 20px 0;
    word-break: break-all;
}

.profile-email-highlight {
    color: #c084fc;
    font-weight: bold;
}

.modal-content button {
    margin-top: 10px;
    padding: 12px;
    font-size: 1.1rem;
}
