/* ====================================================
   GESTY DASHBOARD - Design System
   ==================================================== */

:root {
    /* Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-input: #0f172a;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-bg: rgba(99, 102, 241, 0.15);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);

    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== Reset ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%),
        var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ====== HEADER ====== */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: var(--bg-hover);
}

/* Restaurant Switcher */
.restaurant-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.switcher-icon {
    position: absolute;
    left: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    pointer-events: none;
}

.switcher-select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px 6px 30px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    min-width: 150px;
}

.switcher-select:hover,
.switcher-select:focus {
    border-color: var(--accent);
}

/* Header Notifications */
.header-notification {
    position: relative;
}

.notif-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    position: relative;
    transition: var(--transition);
}

.notif-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.notif-dropdown.show {
    display: block;
    animation: fadeSlideDown 0.2s ease;
}

.notif-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.notif-body {
    max-height: 250px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.notif-item-text {
    flex: 1;
    min-width: 0;
}

.notif-item-text strong {
    font-size: 0.8rem;
    display: block;
}

.notif-item-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notif-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border-top: 1px solid var(--border);
}

.notif-footer:hover {
    background: var(--bg-hover);
}

/* User Dropdown */
.header-user {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.user-btn i.fa-chevron-down {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeSlideDown 0.2s ease;
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-header strong {
    font-size: 0.85rem;
}

.user-role-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.role-admin {
    background: var(--accent-bg);
    color: var(--accent);
}

.role-rest {
    background: var(--success-bg);
    color: var(--success);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.logout-link:hover {
    color: var(--danger) !important;
}

/* ====== SIDEBAR ====== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-logo i {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

.sidebar-restaurant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 8px 12px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

.sidebar-restaurant i {
    font-size: 0.7rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.nav-section {
    padding: 4px 0;
}

.nav-section-title {
    display: block;
    padding: 8px 20px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    margin: 4px 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-bg), rgba(99, 102, 241, 0.05));
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

.user-name-sm {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role-sm {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    backdrop-filter: blur(4px);
}

/* ====== MAIN CONTENT ====== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
}

.content-wrapper {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ====== CARDS ====== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* ====== STAT WIDGETS ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(20px, -20px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.accent {
    background: var(--accent-bg);
    color: var(--accent);
}

.stat-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-icon.info {
    background: var(--info-bg);
    color: var(--info);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-change {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

/* ====== TABLES ====== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ====== STATUS BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

.badge-accent {
    background: var(--accent-bg);
    color: var(--accent);
}

.badge-muted {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: #1a1a2e;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-muted);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.72rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
}

/* ====== FORMS ====== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: 22px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(18px);
}

/* ====== MODALS ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.25s ease forwards;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

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

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

/* ====== CHAT (WhatsApp style) ====== */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - var(--header-height) - 80px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-list {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.chat-list-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chat-search {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.78rem;
    outline: none;
}

.chat-search:focus {
    border-color: var(--accent);
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
}

.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    transition: var(--transition);
}

.chat-conv-item:hover,
.chat-conv-item.active {
    background: var(--bg-hover);
}

.chat-conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.chat-conv-info {
    flex: 1;
    min-width: 0;
}

.chat-conv-name {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.chat-conv-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.chat-conv-preview {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.chat-unread-badge {
    background: #25d366;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-main-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.chat-main-header .chat-conv-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-bubble {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.2s ease;
}

.chat-bubble.inbound {
    align-self: flex-start;
    background: var(--bg-secondary);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.chat-bubble.outbound {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-time {
    font-size: 0.6rem;
    margin-top: 4px;
    text-align: right;
    opacity: 0.7;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chat-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== MESAS GRID ====== */
.mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.mesa-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.mesa-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.mesa-card.disponible {
    border-left: 4px solid var(--success);
}

.mesa-card.ocupada {
    border-left: 4px solid var(--danger);
}

.mesa-card.mantenimiento {
    border-left: 4px solid var(--warning);
}

.mesa-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mesa-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mesa-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ====== HORARIOS ====== */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.day-card.cerrado {
    opacity: 0.5;
}

.day-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.day-hours {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.day-status {
    font-size: 0.65rem;
    margin-top: 4px;
}

/* ====== CHART CONTAINERS ====== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.chart-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
}

/* ====== PLATILLOS GRID ====== */
.platillos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.platillo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.platillo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.platillo-image {
    height: 140px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.platillo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platillo-image i {
    font-size: 2rem;
    color: var(--text-muted);
}

.platillo-body {
    padding: 16px;
}

.platillo-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.platillo-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.platillo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.platillo-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
}

.platillo-category {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 10px;
}

/* ====== Filter Bar ====== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar>* {
    animation: fadeSlideIn 0.3s ease backwards;
}

.filter-bar>*:nth-child(1) {
    animation-delay: 0.05s;
}

.filter-bar>*:nth-child(2) {
    animation-delay: 0.1s;
}

.filter-bar>*:nth-child(3) {
    animation-delay: 0.15s;
}

.filter-bar>*:nth-child(4) {
    animation-delay: 0.2s;
}

.filter-bar>*:nth-child(5) {
    animation-delay: 0.25s;
}

/* ====== LOGIN ====== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

.login-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 8px;
}

.login-logo p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.85rem;
}

/* ====== TODAY INDICATOR ====== */
.today-row td {
    border-left: 3px solid var(--accent);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

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

/* --- Card header always wraps gracefully --- */
.card-header {
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 280px 1fr;
    }

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

@media (max-width: 768px) {

    /* Sidebar collapse */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .hamburger-btn {
        display: flex;
    }

    .top-header {
        left: 0;
        padding: 0 12px;
    }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 12px;
    }

    /* Header: hide user text, shrink date, compress gaps */
    .header-left {
        gap: 8px;
    }

    .header-right {
        gap: 8px;
    }

    .header-title h1 {
        font-size: 0.95rem;
    }

    .header-date {
        font-size: 0.65rem;
    }

    .user-name {
        display: none;
    }

    .user-btn i.fa-chevron-down {
        display: none;
    }

    /* Switcher */
    .switcher-select {
        min-width: 120px;
        font-size: 0.72rem;
        padding: 5px 8px 5px 26px;
    }

    /* Card headers stack on mobile */
    .card-header h2,
    .card-header h3 {
        font-size: 0.85rem;
    }

    .card-body {
        padding: 14px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px;
        gap: 10px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    /* Charts */
    .chart-canvas-wrapper {
        height: 200px;
    }

    /* Chat single column */
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-list {
        max-height: 280px;
    }

    .chat-bubble {
        max-width: 85%;
    }

    /* Filter bar stack */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    /* Mesas */
    .mesas-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    /* Tables */
    .data-table {
        font-size: 0.72rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 10px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Modal full width */
    .modal {
        max-width: 100%;
        margin: 0 8px;
    }

    .modal-body {
        padding: 14px;
    }

    /* Notif dropdown */
    .notif-dropdown {
        width: 280px;
        right: -40px;
    }
}

@media (max-width: 480px) {
    .top-header {
        height: 56px;
    }

    :root {
        --header-height: 56px;
    }

    .header-title h1 {
        font-size: 0.85rem;
    }

    .header-date {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

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

    .mesas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mesa-card {
        padding: 14px;
    }

    .mesa-number {
        font-size: 1.3rem;
    }

    /* Login */
    .login-card {
        padding: 28px 20px;
    }

    .content-wrapper {
        padding: 8px;
    }

    .card-header {
        padding: 12px 14px;
    }

    /* Tables horizontal scroll hint */
    .table-responsive {
        margin: 0 -14px;
        padding: 0 14px;
    }
}

/* ====== UTILITY CLASSES ====== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-accent {
    color: var(--accent);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

/* ====== PASSWORD TOGGLE ====== */
.password-input-wrapper {
    position: relative;
    display: block;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 14px;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--accent);
}

/* ====== SCROLL TO TOP BUTTON ====== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
    transition: var(--transition);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ====== CHAT DATE SEPARATOR ====== */
.chat-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    position: relative;
}

.chat-date-separator::before,
.chat-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.chat-date-separator span {
    padding: 0 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== CONTENT TRANSITIONS ====== */
.content-wrapper {
    animation: fadeSlideIn 0.4s ease;
}

/* Animaciones para elementos de lista */
.data-table tbody tr {
    animation: fadeSlideIn 0.3s ease backwards;
}

.data-table tbody tr:nth-child(1) {
    animation-delay: 0.05s;
}

.data-table tbody tr:nth-child(2) {
    animation-delay: 0.1s;
}

.data-table tbody tr:nth-child(3) {
    animation-delay: 0.15s;
}

.data-table tbody tr:nth-child(4) {
    animation-delay: 0.2s;
}

.data-table tbody tr:nth-child(5) {
    animation-delay: 0.25s;
}

/* Animaciones para cards */
.card {
    animation: fadeSlideIn 0.4s ease backwards;
}

.stats-grid .stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stats-grid .stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stats-grid .stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stats-grid .stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* Animaciones para mesas */
.mesas-grid .mesa-card {
    animation: fadeSlideIn 0.3s ease backwards;
}

.mesas-grid .mesa-card:nth-child(1) {
    animation-delay: 0.05s;
}

.mesas-grid .mesa-card:nth-child(2) {
    animation-delay: 0.08s;
}

.mesas-grid .mesa-card:nth-child(3) {
    animation-delay: 0.11s;
}

.mesas-grid .mesa-card:nth-child(4) {
    animation-delay: 0.14s;
}

.mesas-grid .mesa-card:nth-child(5) {
    animation-delay: 0.17s;
}

.mesas-grid .mesa-card:nth-child(6) {
    animation-delay: 0.2s;
}

/* Animaciones para platillos */
.platillos-grid .platillo-card {
    animation: fadeSlideIn 0.3s ease backwards;
}

.platillos-grid .platillo-card:nth-child(1) {
    animation-delay: 0.05s;
}

.platillos-grid .platillo-card:nth-child(2) {
    animation-delay: 0.08s;
}

.platillos-grid .platillo-card:nth-child(3) {
    animation-delay: 0.11s;
}

.platillos-grid .platillo-card:nth-child(4) {
    animation-delay: 0.14s;
}

.platillos-grid .platillo-card:nth-child(5) {
    animation-delay: 0.17s;
}

.platillos-grid .platillo-card:nth-child(6) {
    animation-delay: 0.2s;
}

/* Animaciones para chat */
.chat-conv-item {
    animation: fadeSlideIn 0.3s ease backwards;
}

.chat-conv-item:nth-child(1) {
    animation-delay: 0.05s;
}

.chat-conv-item:nth-child(2) {
    animation-delay: 0.08s;
}

.chat-conv-item:nth-child(3) {
    animation-delay: 0.11s;
}

.chat-conv-item:nth-child(4) {
    animation-delay: 0.14s;
}

.chat-conv-item:nth-child(5) {
    animation-delay: 0.17s;
}

/* Transiciones suaves para cambios de estado */
.badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover {
    transform: scale(1.05);
}

/* Animación para botones */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Smooth scroll para toda la página */
html {
    scroll-behavior: smooth;
}

/* Transiciones para form controls */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    transform: translateY(-1px);
}

/* Animación para empty states */
.empty-state {
    animation: fadeIn 0.5s ease;
}

/* Animación para loading spinners */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Transiciones suaves para dropdowns */
.notif-dropdown,
.user-dropdown {
    transform-origin: top right;
    animation: dropdownSlide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects mejorados */
.nav-link,
.dash-action-btn,
.dash-kpi,
.mesa-card,
.platillo-card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación para notificaciones badge */
.notif-badge,
.nav-badge,
.chat-unread-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transición suave para sidebar en mobile */
.sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay {
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    animation: fadeIn 0.3s ease;
}