:root {
    --primary: #006EB0;
    --primary-dark: #004d7a;
    --secondary: #E5F3FA;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #F3F4F6;
    --white: #FFFFFF;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

border-left-color: var(--primary);
}

.sidebar-link.active {
    background: #374151;
    color: var(--white);
    border-left-color: var(--primary);
}

.sidebar-link.logout-link {
    margin-top: auto;
    color: #FCA5A5;
}

.sidebar-link.logout-link:hover {
    background: #7F1D1D;
    border-left-color: var(--danger);
}

.sidebar-icon {
    font-size: 1.25rem;
}

/* Admin Content */
.admin-content {
    grid-area: content;
    padding: 2rem;
    overflow-y: auto;
}

/* Admin Footer */
.admin-footer {
    grid-area: footer;
    background: #1F2937;
    color: #9CA3AF;
    padding: 1rem 2rem;
    text-align: center;
}

/* ========== DASHBOARD STYLES ========== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-banner h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid;
}

.stat-card.stat-pending {
    border-left-color: var(--warning);
}

.stat-card.stat-approved {
    border-left-color: var(--success);
}

.stat-card.stat-rejected {
    border-left-color: var(--danger);
}

.stat-card.stat-total {
    border-left-color: var(--primary);
}

.stat-header h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-action:hover {
    background: var(--primary-dark);
}

.btn-action.secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-action.secondary:hover {
    background: #D1E9F6;
}

.action-icon {
    font-size: 1.25rem;
}

/* Bookings Section */
.bookings-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bookings-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Tables */
.bookings-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #F9FAFB;
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

table tbody tr:hover {
    background: #F9FAFB;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-approved {
    background: #D1FAE5;
    color: #059669;
}

.status-rejected {
    background: #FEE2E2;
    color: #DC2626;
}

.status-cancelled {
    background: #F3F4F6;
    color: #6B7280;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-approve {
    padding: 0.5rem 1rem;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-approve:hover {
    opacity: 0.9;
}

.btn-reject {
    padding: 0.5rem 1rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-reject:hover {
    opacity: 0.9;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: var(--bg);
    color: var(--text);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger {
    padding: 0.5rem 1rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ========== PUBLIC LAYOUT (NO SIDEBAR) ========== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: var(--secondary);
    color: var(--primary) !important;
    font-weight: 600;
}

.btn-nav-primary {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
}

.main-content {
    flex: 1;
    width: 100%;
}

/* Footer */
.footer {
    background: #1F2937;
    color: #E5E7EB;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9CA3AF;
}

/* Login/Register Pages */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    width: 100%;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;

    select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--secondary);
    }

    .btn-primary {
        width: 100%;
        padding: 0.75rem;
        background: var(--primary);
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .btn-primary:hover {
        background: var(--primary-dark);
    }

    .alert {
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .alert.error {
        background: #FEF2F2;
        color: var(--danger);
        border: 1px solid #FECACA;
    }

    .alert.success {
        background: #D1FAE5;
        color: #059669;
        border: 1px solid #A7F3D0;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .admin-layout {
            grid-template-areas:
                "header"
                "content"
                "sidebar"
                "footer";
            grid-template-columns: 1fr;
        }

        .sidebar {
            border-top: 1px solid #374151;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .header-container {
            flex-direction: column;
            gap: 1rem;
        }

        .nav-links {
            flex-wrap: wrap;
            justify-content: center;
        }
    }