* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #d7b37a;
    --primary-dark: #b98d52;
    --danger: #e74c3c;
    --success: #27ae60;
    --text-light: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a472a 0%, #2d1b3d 50%, #1a2a3a 100%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== NAVBAR ====================*/

.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* ==================== MAIN ====================*/

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ==================== AUTH ====================*/

.auth-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(255, 248, 242, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
}

.auth-card h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.auth-card .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    color: var(--text-muted);
}

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

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== BUTTONS ====================*/

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 25px rgba(215, 179, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(215, 179, 122, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== STATUS MESSAGES ====================*/

.status-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* ==================== AUTH LINK ====================*/

.auth-link {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.auth-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==================== DASHBOARD ====================*/

.dashboard-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 16px;
    opacity: 0.9;
    color: var(--text-muted);
}

.evenings-list {
    display: grid;
    gap: 16px;
}

.evening-card {
    background: rgba(255, 248, 242, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.evening-card:hover {
    background: rgba(255, 248, 242, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.evening-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    margin-bottom: 4px;
}

.evening-info p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(215, 179, 122, 0.2);
    color: var(--primary);
}

.evening-actions {
    display: flex;
    gap: 10px;
}

/* ==================== MODAL ====================*/

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 248, 242, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    margin-bottom: 24px;
}

/* ==================== TABLES GRID ====================*/

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.table-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.table-card:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

.table-card.selected {
    background: rgba(215, 179, 122, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(215, 179, 122, 0.3);
}

.table-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.04);
}

.table-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.players-list {
    margin-bottom: 12px;
}

.player {
    font-size: 14px;
    padding: 6px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    opacity: 0.9;
}

.table-capacity {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== RESERVATION FORM ====================*/

.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* ==================== PROFILE ====================*/

.profile-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-card {
    background: rgba(255, 248, 242, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-card h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    margin-bottom: 30px;
}

.profile-info {
    margin: 30px 0;
}

.info-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.info-group p {
    font-size: 18px;
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

/* ==================== RESPONSIVE ====================*/

@media (max-width: 768px) {
    .nav-brand {
        font-size: 24px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-card h1 {
        font-size: 36px;
    }

    .dashboard-header h1 {
        font-size: 32px;
    }

    .evening-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .evening-actions {
        width: 100%;
    }

    .evening-actions button {
        width: 100%;
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 24px;
    }
}
