/* ============================================
   GOLF COVE - LEAGUE ADMIN STYLES
   Separated for maintainability
   ============================================ */

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    background: #2f3439;
}

/* Basic site header/topbar fallback */
body {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e9ecef;
    background: #2f3439;
}

.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: none;
    font-size: 13px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.top-bar a { color: rgba(255,255,255,0.9); text-decoration: none; margin-right: 14px; }
.top-bar a i { color: #37b24a; margin-right: 6px; }
.social-links { display: flex; gap: 10px; }
.social-links a { color: rgba(255,255,255,0.9); }

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #37b24a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo img { height: 70px; width: auto; }

.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.nav-menu > li > a:hover { color: #37b24a; }

.mobile-menu-toggle { 
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

/* ============================================
   SIDEBAR
   ============================================ */
.admin-sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #3a3a3a;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

.admin-sidebar.mobile-open {
    display: block;
}

/* League Info in Sidebar - Hero Style */
.league-info {
    padding: 40px 20px 30px;
    border-bottom: none;
    background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(55,178,74,0.9) 100%), 
                url('../images/gallery-1.jpg') center/cover;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

.league-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #37b24a, #2d9440, #37b24a);
}

.league-info h2 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.league-info .season {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.league-info .admin-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Admin Sidebar Nav Menu */
.admin-sidebar .admin-nav {
    padding: 20px 0;
}

.admin-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid transparent;
    margin: 2px 0;
}

.admin-sidebar .nav-item:hover {
    background: rgba(55,178,74,0.1);
    color: #fff;
    transform: translateX(2px);
}

.admin-sidebar .nav-item.active {
    background: linear-gradient(90deg, rgba(55,178,74,0.2) 0%, rgba(55,178,74,0.1) 100%);
    color: #37b24a;
    border-left-color: #37b24a;
    font-weight: 700;
}

.admin-sidebar .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.admin-sidebar .nav-divider {
    height: 1px;
    background: #3a3a3a;
    margin: 10px 20px;
}

.nav-item.danger {
    color: #dc3545;
}

.nav-item.danger:hover {
    background: rgba(220,53,69,0.1);
}

.nav-item.back-link {
    background: #2d2d2d;
    border-bottom: 1px solid #3a3a3a;
    color: #37b24a;
    font-weight: 600;
}

.nav-item.back-link:hover {
    background: rgba(55,178,74,0.15);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.admin-main {
    flex: 1;
    background: #2f3439;
    min-height: calc(100vh - 120px);
}

.main-content {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile sidebar toggle */
.mobile-admin-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #37b24a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(55,178,74,0.4);
    z-index: 100;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

.mobile-sidebar-overlay.open {
    display: block;
}

/* ============================================
   PAGE SECTIONS
   ============================================ */
.page-section {
    display: none;
    max-width: 960px;
    margin: 0 auto;
}

.page-section.active {
    display: block;
}

.page-title {
    font-size: 28px;
    color: #e9ecef;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding-bottom: 15px;
    border-bottom: 3px solid #37b24a;
}

.page-title i {
    color: #37b24a;
    font-size: 30px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: #3c4146;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #4a4f54;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 17px;
    color: #e9ecef;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.card h3 i {
    color: #37b24a;
    font-size: 20px;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.team-card {
    background: linear-gradient(135deg, #3c4146 0%, #35393d 100%);
    border-radius: 14px;
    padding: 20px;
    border-left: 5px solid #37b24a;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 6px 20px rgba(55,178,74,0.25);
    transform: translateY(-4px);
}

.team-card .team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-card .team-name {
    font-weight: 700;
    font-size: 15px;
    color: #e9ecef;
}

.team-card .delete-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.team-card .delete-btn:hover {
    color: #dc3545;
}

.team-card .player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #4a4f54;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.team-card .player:last-child {
    border-bottom: none;
}

.team-card .player-name {
    color: #e9ecef;
}

.team-card .player-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.team-card .hcp {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.team-card .pin {
    font-family: monospace;
    background: #2f3439;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #37b24a;
}

.team-card .add-player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #2f3439;
    border: 2px dashed #5a5f64;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card .add-player-btn:hover {
    border-color: #37b24a;
    background: rgba(55,178,74,0.1);
    color: #37b24a;
    transform: scale(1.02);
}

/* Add Team Card */
.add-team-card {
    background: #3c4146;
    border: 3px dashed #5a5f64;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.add-team-card:hover {
    border-color: #37b24a;
    background: linear-gradient(135deg, rgba(55,178,74,0.1) 0%, rgba(55,178,74,0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(55,178,74,0.2);
}

.add-team-card i {
    font-size: 40px;
    color: #5a5f64;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.add-team-card:hover i {
    color: #37b24a;
    transform: scale(1.1);
}

/* ============================================
   QR SECTION
   ============================================ */
.qr-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #3c4146 0%, #35393d 100%);
    border-radius: 12px;
}

.qr-display #qrcode {
    display: inline-block;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    border: 2px solid #4a4f54;
}

.qr-display #qrcode img {
    display: block;
}

.qr-display .url {
    font-family: monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    background: #2f3439;
    padding: 10px;
    border-radius: 6px;
    word-break: break-all;
    margin: 15px 0;
}

/* ============================================
   ROUND STATUS
   ============================================ */
.round-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #37b24a, #2d9440);
    border-radius: 10px;
    color: #fff;
    margin-bottom: 20px;
}

.round-status h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #fff;
}

.round-status p {
    opacity: 0.9;
    font-size: 14px;
}

.round-status .score-count {
    text-align: right;
}

.round-status .big {
    font-size: 32px;
    font-weight: 700;
}

.round-status .label {
    font-size: 12px;
    opacity: 0.8;
}

/* Rounds List */
.round-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #3c4146;
    border-radius: 8px;
    margin-bottom: 10px;
}

.round-item h4 {
    font-size: 15px;
    margin-bottom: 2px;
    color: #e9ecef;
}

.round-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.round-item .actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #37b24a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover { background: #2d9440; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }

.btn-outline {
    background: transparent;
    border: 2px solid #37b24a;
    color: #37b24a;
}

.btn-outline:hover {
    background: #37b24a;
    color: #fff;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e9ecef;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #4a4f54;
    border-radius: 8px;
    font-size: 14px;
    background: #2f3439;
    color: #e9ecef;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #37b24a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Print Options */
.print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.print-grid select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================
   PIN PANEL
   ============================================ */
.pin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.pin-stats {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.pin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.pin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #4a4f54;
    border-radius: 10px;
    background: #3c4146;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pin-row .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pin-row .name {
    font-weight: 700;
    color: #e9ecef;
}

.pin-row .meta {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.pin-chip {
    font-family: monospace;
    background: #2f3439;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #37b24a;
}

.pin-actions .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Par Grid */
.par-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
}

.par-grid .hole {
    text-align: center;
}

.par-grid label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.par-grid input {
    width: 100%;
    padding: 10px 5px;
    text-align: center;
    border: 2px solid #4a4f54;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    background: #2f3439;
    color: #e9ecef;
}

.par-grid input:focus {
    outline: none;
    border-color: #37b24a;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal.open { display: flex; }

.modal-content {
    background: #3c4146;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    color: #e9ecef;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    color: #e9ecef;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.6);
}

.empty-state i {
    font-size: 48px;
    color: #5a5f64;
    margin-bottom: 15px;
}

/* ============================================
   SETUP / LOGIN SCREEN
   ============================================ */
.setup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2f3439 0%, #1a1a1a 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.setup-container.active {
    display: flex;
}

.setup-card {
    background: #3c4146;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 420px;
}

.setup-card h1 {
    text-align: center;
    color: #37b24a;
    margin-bottom: 25px;
    font-size: 24px;
}

.setup-card .form-group {
    margin-bottom: 18px;
}

.setup-card .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e9ecef;
}

.setup-card .form-group input,
.setup-card .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4a4f54;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #2f3439;
    color: #e9ecef;
}

.setup-card .form-group input:focus,
.setup-card .form-group select:focus {
    border-color: #37b24a;
    outline: none;
}

.setup-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */
@media (min-width: 768px) {
    .admin-sidebar {
        display: block !important;
    }
    .mobile-admin-toggle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }
    .admin-sidebar.mobile-open {
        display: block;
    }
    .mobile-admin-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-content {
        padding: 20px;
    }
}

/* ============================================
   STAFF MANAGEMENT
   ============================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ccc;
}

.staff-card.manager { border-left-color: #e74c3c; }
.staff-card.bartender { border-left-color: #3498db; }
.staff-card.server { border-left-color: #27ae60; }

.staff-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.staff-card .role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.staff-card .role-badge.manager { background: #fde8e8; color: #e74c3c; }
.staff-card .role-badge.bartender { background: rgba(52,152,219,0.2); color: #3498db; }
.staff-card .role-badge.server { background: rgba(39,174,96,0.2); color: #27ae60; }

.staff-card .pin-display {
    font-family: monospace;
    font-size: 16px;
    color: #37b24a;
    margin: 10px 0;
}

.staff-card .permissions {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

.staff-card .btn-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.staff-card .btn-group button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.staff-card .btn-edit { background: #3498db; color: white; }
.staff-card .btn-delete { background: #e74c3c; color: white; }

/* ============================================
   STATS & REPORTS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #37b24a;
}

.stat-card .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

.stat-card.blue .stat-value { color: #3498db; }
.stat-card.orange .stat-value { color: #e67e22; }
.stat-card.purple .stat-value { color: #9b59b6; }

/* Report Generator */
.report-generator {
    background: #3c4146;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.report-generator h3 {
    margin: 0 0 20px;
    color: #e9ecef;
}

.report-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.report-filters .filter-group label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.report-filters input, .report-filters select {
    padding: 10px;
    border: 1px solid #4a4f54;
    border-radius: 5px;
    font-size: 14px;
    background: #2f3439;
    color: #e9ecef;
}

.report-output {
    background: #3c4146;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    color: #e9ecef;
}

/* ============================================
   TIME CLOCK
   ============================================ */
.timeclock-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeclock-table th, .timeclock-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.timeclock-table th {
    background: #37b24a;
    color: white;
    font-weight: 600;
}

.timeclock-table tr:hover { background: rgba(55,178,74,0.1); }

.clock-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.clock-actions button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-clock-in { background: #27ae60; color: white; }
.btn-clock-out { background: #e74c3c; color: white; }

/* ============================================
   SETTINGS
   ============================================ */
.settings-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-section h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #37b24a;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-row:last-child { border-bottom: none; }

.setting-label {
    font-weight: 500;
}

.setting-label small {
    display: block;
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    margin-top: 3px;
}

.setting-input input, .setting-input select {
    padding: 10px;
    border: 1px solid #4a4f54;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
    background: #2f3439;
    color: #e9ecef;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #37b24a;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #e74c3c;
}

.danger-zone h3 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.danger-zone button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* ============================================
   LEAGUE TOGGLE - ADMIN SIDEBAR
   ============================================ */
.league-toggle-admin {
    display: flex;
    justify-content: center;
}

.league-toggle-admin .league-toggle {
    background: rgba(0,0,0,0.4);
    padding: 3px;
    border-radius: 20px;
    display: flex;
    gap: 2px;
}

.league-toggle-admin .league-tab {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.league-toggle-admin .league-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.league-toggle-admin .league-tab.active {
    background: #37b24a;
    color: #fff;
}

.league-toggle-admin .league-tab[data-league="private"].active {
    background: #9b59b6;
}

.league-toggle-admin .league-tab-text {
    display: inline;
}

@media (max-width: 768px) {
    .league-toggle-admin .league-tab {
        padding: 5px 10px;
        font-size: 10px;
    }
    .league-toggle-admin .league-tab-text {
        display: none;
    }
}

/* ============================================
   ADMIN SCORE EDITOR STYLES
   ============================================ */

#adminScoreEditorContainer {
    background: #1a202c;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

#adminScoreEditor input[type="number"] {
    transition: all 0.2s ease;
}

#adminScoreEditor input[type="number"]:focus {
    border-color: #37b24a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 178, 74, 0.2);
    transform: scale(1.05);
}

#adminScoreEditor input[type="number"]::-webkit-inner-spin-button,
#adminScoreEditor input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#adminScoreEditor input[type="number"] {
    -moz-appearance: textfield;
}

/* Admin Score Editor Selects */
#adminScoreRound,
#adminScoreTeam {
    width: 100%;
    padding: 12px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 14px;
    background: #1a202c;
    color: #e9ecef;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2337b24a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

#adminScoreRound:hover,
#adminScoreTeam:hover {
    border-color: #37b24a;
}

#adminScoreRound:focus,
#adminScoreTeam:focus {
    outline: none;
    border-color: #37b24a;
    box-shadow: 0 0 0 3px rgba(55, 178, 74, 0.2);
}

#adminScoreRound:disabled,
#adminScoreTeam:disabled {
    background: #2d3748;
    color: #718096;
    cursor: not-allowed;
    border-color: #4a5568;
}

#adminScoreRound option,
#adminScoreTeam option {
    background: #1a202c;
    color: #e9ecef;
    padding: 10px;
}
