/* SmartBookr - Modern 2026 Design - FULL UNIFIED VERSION */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background: var(--light); color: var(--dark); overflow-x: hidden; }

/* --- DASHBOARD STRUCTURAL LAYOUT --- */
.dashboard {
    display: flex !important;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    background: var(--dark);
    color: white;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    width: var(--sidebar-width);
    overflow-y: auto;
    z-index: 1000;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width); /* Pushes content past the fixed sidebar */
    padding: 2.5rem;
    background: var(--light);
    min-width: 0; /* Prevents internal elements from breaking width */
    width: calc(100% - var(--sidebar-width));
}

/* --- SIDEBAR COMPONENTS --- */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--radius);
    transition: 0.3s;
    margin-bottom: 0.5rem;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: var(--gradient-1);
    color: white;
}

/* --- BUTTONS & FILTERS --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}
.btn-primary { background: var(--gradient-1); color: white; }
.btn-secondary { background: white; color: var(--dark); border: 1px solid #ddd; }

.filter-nav { display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap; }

/* --- TABLE STYLES --- */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px; /* Prevents columns from squashing */
}

.table th, .table td { padding: 1.25rem 1.5rem; text-align: left; }
.table th { background: #f1f5f9; color: var(--gray); font-size: 0.8rem; text-transform: uppercase; }
.table tbody tr { border-bottom: 1px solid #f1f5f9; }

/* --- STATUS BADGES --- */
.badge { padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .main-content { margin-left: 0; width: 100%; }
    .sidebar.open { transform: translateX(0); }
}