/* ==========================================================================
   GEBZE TAYFUNSPOR KULÜBÜ ADMIN PANEL STİLLERİ (admin.css)
   ========================================================================== */

/* 1. LOGIN PAGE SPECIFIC STYLES */
.login-body {
    background-color: var(--bg-dark-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Ambient pulsing background glow circles */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary-red-hover);
    top: -100px;
    left: -100px;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background-color: var(--accent-green);
    bottom: -150px;
    right: -150px;
    animation: pulseGlow 12s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.22; }
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    z-index: 10;
}

.login-card {
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(116, 25, 41, 0.15);
    transition: transform var(--transition-normal);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.login-club-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form-group {
    margin-bottom: 24px;
}

.login-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form-group label i {
    color: var(--primary-red-hover);
    margin-right: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    padding: 14px 16px;
    font-size: 15px;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-red-hover);
    box-shadow: 0 0 0 3px rgba(116, 25, 41, 0.25);
    background-color: rgba(10, 10, 12, 0.9);
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition-fast);
}

.toggle-password-btn:hover {
    color: var(--white);
}

.login-error-container {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 8px;
}

.login-error-container.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.login-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.spinner {
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.spinner.show {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.back-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-3px);
}

/* Shake card animation on wrong login input */
.shake {
    animation: shakeAnim 0.5s ease-in-out;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}


/* 2. ADMIN SIDEBAR LAYOUT */
.admin-body {
    background-color: var(--bg-dark-900);
    min-height: 100vh;
    color: var(--text-light);
    font-family: var(--font-body);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--bg-dark-800);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 42px;
    height: auto;
}

.sidebar-logo span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.admin-badge {
    align-self: flex-start;
    background-color: rgba(116, 25, 41, 0.2);
    border: 1px solid rgba(116, 25, 41, 0.4);
    color: var(--primary-red-hover);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.sidebar-link i {
    font-size: 16px;
    width: 20px;
}

.sidebar-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: var(--white);
    background-color: rgba(116, 25, 41, 0.12);
    border-left: 3px solid var(--primary-red-hover);
}

.nav-badge {
    margin-left: auto;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    font-weight: 600;
}

.logout-btn:hover {
    background-color: #dc3545;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}


/* 3. MAIN WORKSPACE CONTENT */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.top-header-title h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.top-header-title p {
    color: var(--text-muted);
    font-size: 14px;
}

.top-header-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-info {
    text-align: right;
}

.profile-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
}

.profile-role {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--bg-dark-700);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-red-hover);
}


/* 4. ADMIN SECTIONS GENERAL */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}


/* 5. STATS CARDS */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-dark-800);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bg-red {
    background-color: rgba(116, 25, 41, 0.15);
    color: var(--primary-red-hover);
    border: 1px solid rgba(116, 25, 41, 0.25);
}

.bg-gold {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.bg-blue {
    background-color: rgba(13, 110, 253, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.bg-green {
    background-color: rgba(25, 135, 84, 0.1);
    color: #4caf50;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}


/* 6. CARDS & PANELS */
.card {
    background-color: var(--bg-dark-800);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-between-header {
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

.card-narrow {
    max-width: 500px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* 7. TABLES STYLING */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.admin-table th {
    padding: 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}


/* 8. BADGES */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-new {
    background-color: rgba(13, 110, 253, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.status-called {
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-approved {
    background-color: rgba(25, 135, 84, 0.15);
    color: #4caf50;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.accent-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}


/* 9. SEARCH & FILTER CONTROLS */
.search-filters {
    display: flex;
    gap: 16px;
    width: 100%;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: rgba(10, 10, 12, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    padding: 10px 16px 10px 40px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red-hover);
    background-color: rgba(10, 10, 12, 0.7);
}

.select-box select {
    background-color: rgba(10, 10, 12, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    padding: 10px 16px;
    font-size: 14px;
    height: 100%;
    min-width: 180px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-box select:focus {
    outline: none;
    border-color: var(--primary-red-hover);
}


/* 10. GRID & FORMS FOR CRUD */
.admin-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .admin-split-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: rgba(10, 10, 12, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    padding: 12px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red-hover);
    box-shadow: 0 0 0 3px rgba(116, 25, 41, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mb-3 { margin-bottom: 1.25rem; }


/* 11. TABLE ACTIONS */
.action-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
}

.btn-view:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.btn-check:hover {
    background-color: #4caf50;
    border-color: #4caf50;
}

.btn-delete:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}


/* 12. DYNAMIC ADMIN TABS */
.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.admin-tab-btn:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.03);
}

.admin-tab-btn.active {
    color: var(--white);
    background-color: var(--primary-red);
}

.admin-subtab {
    display: none;
}

.admin-subtab.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}


/* 13. PUAN DURUMU EDITING */
.standings-edit-table input[type="number"] {
    width: 60px;
    background-color: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--white);
    padding: 6px;
    text-align: center;
    font-size: 14px;
}

.standings-edit-table input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-red-hover);
}

.standings-edit-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}


/* 14. ADMIN NEWS & STORE LISTINGS */
.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.admin-news-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-news-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.admin-news-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.admin-prod-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    position: relative;
}

.admin-prod-card img {
    height: 80px;
    margin: 0 auto 12px auto;
    object-fit: contain;
}

.admin-prod-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-prod-card .price {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.admin-prod-card .delete-btn {
    width: 100%;
}


/* 15. DETAILED APPLICATION MODAL */
.admin-modal-card {
    max-width: 600px;
    width: 90%;
    background-color: var(--bg-dark-800);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius-md);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--white);
}

.admin-modal-body {
    padding: 24px;
}

.details-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-val {
    font-size: 14px;
    color: var(--text-light);
}

.detail-val.font-semibold {
    font-weight: 600;
}

.detail-val-box {
    background-color: rgba(10, 10, 12, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 13px;
    color: var(--text-light);
    min-height: 80px;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}


/* 16. DASHBOARD NEXT MATCH COMPONENT */
.match-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px 24px !important;
    min-height: 200px;
}

.match-card-body .league {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-red-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.match-card-body .date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.match-card-body .teams-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.match-card-body .team-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.match-card-body .team-item img {
    height: 48px;
    object-fit: contain;
}

.match-card-body .team-item .team-logo-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--bg-dark-700);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
}

.match-card-body .team-item span {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.match-card-body .vs-divider {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 4px;
}

.match-card-body .location {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 17. ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Switch Toggle Styles */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--primary-red);
    border-color: var(--primary-red-hover);
}

input:checked + .slider-round:before {
    transform: translateX(24px);
    background-color: var(--white);
}

/* Maintenance Header Badge */
.maintenance-active-badge {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: none;
    align-items: center;
    gap: 6px;
    animation: pulseRed 2s infinite alternate ease-in-out;
}

@keyframes pulseRed {
    0% { opacity: 0.8; box-shadow: 0 0 5px rgba(116, 25, 41, 0.5); }
    100% { opacity: 1; box-shadow: 0 0 15px rgba(116, 25, 41, 0.8); }
}

/* 18. MOBILE RESPONSIVENESS AND TOGGLES */
.admin-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    transition: var(--transition-fast);
}

.admin-mobile-toggle:hover {
    color: var(--primary-red-hover);
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
    color: var(--white);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 95;
    transition: opacity var(--transition-normal);
    opacity: 0;
    pointer-events: none;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Media Query for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .admin-mobile-toggle {
        display: block;
    }

    .sidebar-close-btn {
        display: block;
        align-self: flex-end;
        margin-bottom: -10px;
    }

    .sidebar-header {
        padding: 16px 20px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 260px;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8);
    }

    .admin-main {
        margin-left: 0;
        padding: 24px 16px;
    }

    .admin-top-header {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .top-header-title {
        flex: 1;
    }

    .top-header-title h1 {
        font-size: 22px;
    }

    .top-header-title p {
        font-size: 12px;
    }

    .top-header-profile {
        display: none; /* Hide profile photo/name on mobile header to save space */
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-split-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-tab-btn {
        font-size: 13px;
        padding: 6px 12px;
        flex: 1;
        text-align: center;
    }

    .admin-table th, .admin-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .search-filters {
        flex-direction: column;
        gap: 12px;
    }

    .select-box select {
        width: 100%;
    }

    .details-list {
        grid-template-columns: 1fr;
    }

    .detail-item.full-width {
        grid-column: span 1;
    }

    .admin-modal-card {
        width: 95%;
        margin: 10px;
    }

    .admin-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-news-item .btn-delete {
        align-self: flex-end;
    }
}

/* Extra small mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }

    .login-logo {
        width: 65px;
    }

    .login-club-name {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .admin-top-header {
        margin-bottom: 16px;
    }

    .top-header-title h1 {
        font-size: 20px;
    }

    .admin-tab-btn {
        font-size: 12px;
        padding: 6px 8px;
    }
}

/* Player Position Badge Styles for Admin Table */
.player-position-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.player-position-tag.gk { background-color: rgba(33, 150, 243, 0.12); color: #2196f3; }
.player-position-tag.def { background-color: rgba(76, 175, 80, 0.12); color: #4caf50; }
.player-position-tag.mid { background-color: rgba(255, 152, 0, 0.12); color: #ff9800; }
.player-position-tag.att { background-color: rgba(244, 67, 54, 0.12); color: #f44336; }
