* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A0E17 0%, #0F141F 100%);
    color: #F3F4F6;
    min-height: 100vh;
    padding: 20px;
}

.glass-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-title {
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
}

.muted-text {
    color: #9CA3AF;
    margin-top: 8px;
}

.muted-text-small {
    color: #9CA3AF;
    font-size: 14px;
}

.accent-text {
    color: #10B981;
}

.tab-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    background: rgba(31, 41, 55, 0.5);
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab.active {
    background: #10B981;
    color: white;
    border-radius: 12px;
}

.field-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    color: white;
}

.field-input-sm {
    padding: 10px;
}

.field-select {
    margin-bottom: 20px;
}

.member-group {
    margin-bottom: 12px;
}

.section-label {
    margin-bottom: 8px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3B82F6;
    padding: 12px 24px;
    border-radius: 12px;
    color: #3B82F6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3B82F6;
    color: white;
}

.full-width {
    width: 100%;
}

.topbar {
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.compact-topbar {
    align-items: center;
}

.page-title {
    font-size: 24px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.ground-grid {
    align-items: stretch;
}

.ground-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.5));
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ground-card.active {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(31, 41, 55, 0.5));
}

.ground-card:hover {
    transform: translateY(-4px);
}

.ground-icon {
    font-size: 32px;
}

.ground-title {
    font-size: 20px;
    margin-top: 8px;
}

.main-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.date-selector {
    margin-bottom: 20px;
}

.date-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.empty-state-text {
    text-align: center;
    color: #9CA3AF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px;
}

.stat-icon {
    font-size: 28px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.section-card {
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    margin-bottom: 20px;
}

.admin-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-schedule-controls {
    min-width: 200px;
}

.admin-date-input {
    margin-bottom: 0;
}

.slot-remove-btn {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.time-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.no-top-margin {
    margin-top: 0;
}

.admin-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0 20px;
}

.admin-account-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 16px;
}

.admin-account-card h4 {
    margin-bottom: 12px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #111827;
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(16, 185, 129, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.time-slot {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #1F2937;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.time-slot.available {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
    color: #10B981;
}

.time-slot.available:hover {
    background: #10B981;
    color: white;
    transform: scale(1.05);
}

.time-slot.booked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
    cursor: not-allowed;
    position: relative;
}

.time-slot.booked:hover::after {
    content: attr(data-booked-by);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #10B981;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
    font-family: 'Inter', sans-serif;
}

.time-slot.selected {
    background: #10B981;
    color: white;
    border-color: #10B981;
    transform: scale(1.05);
}

.booking-badge {
    font-size: 10px;
    display: block;
    margin-top: 4px;
    color: #F87171;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 1100;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 10px;
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }

    .brand-title {
        font-size: 34px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .ground-card {
        padding: 16px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .topbar,
    .panel-header,
    .modal-header {
        align-items: flex-start;
    }
}
