/* =============================================
   Ta7wisa — Sidebar Dashboard Layout
   Used by: agency/*, tourist/*, admin/*, messages
   ============================================= */

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

:root {
    --sb-w:           280px;
    --sb-bg:          rgba(15, 23, 42, 0.95); /* Deep Glass Blue */
    --sb-border:      rgba(255,255,255,0.1);
    --sb-text:        rgba(255,255,255,0.6);
    --sb-act-bg:      #10b981;
    --sb-hover:       rgba(255,255,255,0.08);

    --topbar-h:       80px;
    --page-bg:        #f1f5f9;
    --primary:        #10b981;
    --accent:         #6366f1;
}

/* ── SIDEBAR ──────────────────────────── */
.sidebar {
    width: var(--sb-w);
    background: var(--sb-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 20px; 
    right: 20px;
    bottom: 20px;
    height: calc(100vh - 40px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--sb-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.3s ease; /* Only for mobile toggle */
}

/* Logo Area */
.sb-logo {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 1.6rem;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}
.sb-logo-name {
    color: var(--primary); font-size: 1.4rem; font-weight: 900; letter-spacing: -1px;
    white-space: nowrap;
}

/* Nav */
.sb-nav { flex: 1; overflow-y: auto; padding: 1rem 0; scrollbar-width: none; }
.sb-nav::-webkit-scrollbar { display: none; }

.sb-section { 
    color: rgba(255,255,255,.3); 
    font-size: .75rem; 
    font-weight: 800; 
    letter-spacing: .15em; 
    text-transform: uppercase; 
    padding: 1.5rem 1.8rem .8rem;
    white-space: nowrap;
}

.sb-nav ul { list-style: none; padding: 0 1rem; }
.sb-nav a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; border-radius: 18px;
    text-decoration: none; color: var(--sb-text);
    font-size: 1rem; font-weight: 600; margin-bottom: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sb-ico { 
    font-size: 1.4rem; 
    min-width: 30px; 
    display: flex; justify-content: center;
    transition: all 0.3s;
}

.sb-nav a:hover { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
    transform: translateX(-5px);
}
.sb-nav a.active { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}
.sb-nav a.active .sb-ico { color: #fff; }

/* User Profile Card */
.sb-foot { padding: 1.2rem; margin-top: auto; flex-shrink: 0; }
.sb-user {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; border-radius: 20px; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.sb-avatar {
    width: 48px; height: 48px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0; color: white;
}
.sb-user-info { white-space: nowrap; overflow: hidden; }
.sb-user-name { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.sb-user-role { color: rgba(255,255,255,.4); font-size: .75rem; }

.sb-logout {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    width: 100%; height: 55px; border-radius: 18px;
    border: 1px solid rgba(239,68,68,0.2); 
    background: rgba(239,68,68,0.08);
    color: #fca5a5; cursor: pointer; transition: all 0.3s;
    font-size: 0.95rem; font-weight: 700;
}
.sb-logout:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ── MAIN ─────────────────────────────── */
.main, .main-content { 
    flex: 1; 
    margin-right: calc(var(--sb-w) + 40px); /* Sidebar width + 2*margin */
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    transition: margin-right 0.3s ease;
    width: calc(100% - var(--sb-w) - 40px);
}
/* No sidebar mode */
.app.no-sidebar .main, .app.no-sidebar .main-content { 
    margin-right: 0 !important; 
    width: 100% !important;
}

/* Topbar */
.topbar {
    height: var(--topbar-h); 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem; 
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    position: sticky; 
    top: 0;
    z-index: 200;
    overflow: visible;
}
.topbar-l { display: flex; align-items: center; gap: .85rem; }
.sb-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; border-radius: 8px; color: var(--text-2); font-size: 1.2rem; transition: background .14s; }
.sb-toggle:hover { background: var(--border); }
.topbar-title { font-size: .98rem; font-weight: 700; color: var(--text); }
.topbar-r { display: flex; align-items: center; gap: .75rem; }
.topbar-hello { font-size: .83rem; color: var(--text-2); }
.topbar-hello strong { color: var(--text); }

/* Content */
.content { 
    flex: 1; 
    padding: 2rem; 
}
.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── WELCOME BANNER ───────────────────── */
.welcome-banner {
    background: var(--sb-bg);
    border-radius: var(--r-lg);
    padding: 1.75rem 2rem; margin-bottom: 1.75rem;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.welcome-banner::after {
    content: ''; position: absolute; top: -60%; right: -5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,166,126,.2) 0%, transparent 65%);
    pointer-events: none;
}
.wlc-text h1 { color: #fff; font-size: 1.45rem; font-weight: 700; margin-bottom: .3rem; }
.wlc-text p  { color: rgba(255,255,255,.48); font-size: .86rem; }
.wlc-stats   { display: flex; gap: 1rem; position: relative; z-index: 1; }
.wlc-stat    {
    text-align: center; background: rgba(255,255,255,.07);
    padding: .85rem 1.2rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09); min-width: 88px;
}
.wlc-num { display: block; font-size: 1.7rem; font-weight: 700; color: #34d399; line-height: 1; margin-bottom: .25rem; }
.wlc-lbl { font-size: .7rem; color: rgba(255,255,255,.42); }

/* ── STATS ROW ────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 1.1rem; margin-bottom: 1.75rem;
}
.stat-card {
    background: var(--card); border-radius: var(--r);
    padding: 1.3rem; display: flex; align-items: center; gap: .95rem;
    border: 1px solid var(--border); box-shadow: var(--shadow-xs);
    cursor: pointer; transition: transform .18s, box-shadow .18s;
    text-decoration: none; color: inherit;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-ic {
    width: 50px; height: 50px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; flex-shrink: 0;
}
.si-blue   { background: #eff6ff; }
.si-green  { background: #d1fae5; }
.si-orange { background: #fff7ed; }
.si-purple { background: #f5f3ff; }
.si-teal   { background: #f0fdfa; }
.si-yellow { background: #fefce8; }
.si-pink   { background: #fdf2f8; }
.si-red    { background: #fef2f2; }
.stat-body { flex: 1; min-width: 0; }
.stat-num  { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: .22rem; }
.stat-lbl  { font-size: .76rem; color: var(--text-2); }

/* ── QUICK ACTIONS ────────────────────── */
.quick-acts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: .85rem; margin-bottom: 1.75rem;
}
.qa {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.1rem .9rem; text-align: center; text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    box-shadow: var(--shadow-xs); cursor: pointer; transition: all .18s;
}
.qa:hover { border-color: var(--primary); background: var(--primary-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.qa-ico  { font-size: 1.55rem; }
.qa-txt  { font-size: .76rem; font-weight: 600; color: var(--text-2); }

/* ── CARDS GRID ───────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.4rem; }

.card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden; }
.card-head {
    padding: 1.1rem 1.35rem; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--border);
}
.card-title { font-size: .9rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.card-more  { font-size: .76rem; color: var(--primary); text-decoration: none; font-weight: 600; transition: color .14s; }
.card-more:hover { color: var(--primary-dk); }
.card-body  { padding: .4rem 1.35rem 1rem; }

/* List rows */
.list-row {
    display: flex; align-items: center; gap: .8rem;
    padding: .75rem 0; border-bottom: 1px solid #f1f5f9;
}
.list-row:last-child { border-bottom: none; }
.row-ic {
    width: 38px; height: 38px; border-radius: 10px; background: var(--primary-lt);
    display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0;
}
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: .83rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .15rem; }
.row-sub   { font-size: .73rem; color: var(--text-3); }

/* ── BADGES ───────────────────────────── */
.badge { padding: .2rem .55rem; border-radius: 20px; font-size: .67rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.b-pending   { background: #fef3c7; color: #78350f; }
.b-confirmed { background: #d1fae5; color: #065f46; }
.b-cancelled { background: #fee2e2; color: #7f1d1d; }
.b-completed { background: #dbeafe; color: #1e3a8a; }
.b-active    { background: #d1fae5; color: #065f46; }
.b-full      { background: #fff7ed; color: #7c2d12; }
.b-inactive  { background: #f1f5f9; color: #475569; }

/* ── EMPTY / LOADING ──────────────────── */
.empty { text-align: center; padding: 2rem 1rem; color: var(--text-3); }
.empty-ico { font-size: 2rem; margin-bottom: .5rem; opacity: .35; }
.empty p { font-size: .8rem; }
.loading { text-align: center; padding: 1.5rem; color: var(--text-3); font-size: .83rem; }

/* ── BUTTONS ──────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem 1.1rem; border-radius: 9px; font-size: .84rem; font-weight: 600;
    cursor: pointer; text-decoration: none; border: none; transition: all .18s; font-family: inherit;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); box-shadow: 0 4px 14px rgba(0,166,126,.3); }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-outline:hover { background: var(--border); }
.btn-danger   { background: #fee2e2; color: #991b1b; }
.btn-danger:hover { background: #fecaca; }
.w-full { width: 100%; }
.mt-1 { margin-top: 1rem; }

/* ── OVERLAY ──────────────────────────── */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250; backdrop-filter: blur(2px); }
.sb-overlay.show { display: block; }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-right: 0 !important; }
    .sb-toggle { display: flex !important; }
    .wlc-stats { display: none; }
}
@media (max-width: 600px) {
    .content { padding: 1rem; }
    .wlc-text h1 { font-size: 1.15rem; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 1rem; }
    .quick-acts { grid-template-columns: repeat(2, 1fr); }
}

/* ── SCROLLBAR ────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════════════════════════════════
   NEW DASHBOARD COMPONENTS (v2)
   ═══════════════════════════════════════════ */

/* ── Dashboard Hero ──────────────────────── */
.dash-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #00a67e 100%);
    border-radius: var(--r-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
    color: #fff;
}
.dash-hero.agency { background: linear-gradient(135deg, #0f172a 0%, #1a365d 50%, #2563eb 100%); }
.dash-hero.tourist { background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #7c3aed 100%); }

.dash-hero-pattern {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.dash-hero-content {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
}

.dash-hero-text h1 {
    font-size: 1.55rem; font-weight: 800; margin-bottom: .35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dash-hero-text p { color: rgba(255,255,255,.6); font-size: .9rem; }

.dash-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.dash-hero-btn {
    padding: .65rem 1.4rem; border-radius: 10px;
    font-size: .88rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all .22s; border: none; font-family: inherit;
    display: inline-flex; align-items: center; gap: .4rem;
}
.dash-hero-btn.primary {
    background: rgba(255,255,255,.15); color: #fff;
    backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
}
.dash-hero-btn.primary:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.dash-hero-btn.outline {
    background: transparent; color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.2);
}
.dash-hero-btn.outline:hover { background: rgba(255,255,255,.08); color: #fff; }

.dash-hero-mini-stats { display: flex; gap: 1.2rem; }
.mini-stat {
    text-align: center; background: rgba(255,255,255,.08);
    padding: .75rem 1.1rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px); min-width: 80px;
}
.mini-num { display: block; font-size: 1.6rem; font-weight: 800; color: #34d399; line-height: 1; margin-bottom: .2rem; }
.mini-lbl { font-size: .7rem; color: rgba(255,255,255,.45); }

/* ── Dashboard Alert ─────────────────────── */
.dash-alert {
    padding: .85rem 1.25rem; border-radius: var(--r);
    font-size: .88rem; font-weight: 500; margin-bottom: 1rem;
}
.dash-alert.warn { background: #fff5e8; color: #e67e22; border: 1px solid #fde8c8; }

/* ── Dashboard Stats Grid ────────────────── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem; margin-bottom: 1.75rem;
}

.dash-stat-card {
    background: var(--card); border-radius: var(--r-lg);
    padding: 1.4rem 1.3rem; display: flex; align-items: center; gap: 1rem;
    border: 1px solid var(--border); box-shadow: var(--shadow-xs);
    position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none; color: inherit;
}
.dash-stat-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 4px; height: 100%;
    background: var(--accent, var(--primary));
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.dash-stat-card.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow); cursor: pointer; }
.dash-stat-card.clickable:hover .dash-stat-icon { transform: scale(1.1); }

.dash-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    background: color-mix(in srgb, var(--accent, var(--primary)) 12%, transparent);
    transition: transform .2s;
}

.dash-stat-info { flex: 1; }
.dash-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: .2rem; }
.dash-stat-label { font-size: .78rem; color: var(--text-3); font-weight: 500; }

.dash-stat-trend { font-size: 1.1rem; opacity: .6; }
.dash-stat-badge {
    position: absolute; top: .75rem; left: .75rem;
    background: #ef4444; color: #fff; font-size: .68rem;
    padding: .15rem .5rem; border-radius: 20px; font-weight: 700;
}
.dash-stat-badge.pulse { animation: badgePulse 2s infinite; }
@keyframes badgePulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ── Dashboard Section Title ─────────────── */
.dash-section-title {
    margin-bottom: 1rem;
}
.dash-section-title h2 {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
}

/* ── Dashboard Quick Actions Grid ────────── */
.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 1.75rem;
}
.dash-quick-grid.four { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.dash-quick-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1.5rem 1.25rem;
    text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; gap: .6rem;
    box-shadow: var(--shadow-xs); position: relative;
    transition: all .22s; overflow: hidden;
}
.dash-quick-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.dash-quick-card:hover .dash-quick-arrow { opacity: 1; transform: translateX(-4px); }

.dash-quick-card.mini { padding: 1.15rem; text-align: center; align-items: center; }

.dash-quick-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; flex-shrink: 0;
}
.dash-quick-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); }
.dash-quick-card p { font-size: .8rem; color: var(--text-3); line-height: 1.5; }

.dash-quick-arrow {
    position: absolute; left: 1.25rem; top: 1.5rem;
    font-size: 1.1rem; color: var(--primary); font-weight: 700;
    opacity: 0; transition: all .22s;
}

/* ── Dashboard Cards ─────────────────────── */
.dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.4rem; margin-bottom: 1.75rem;
}

.dash-card {
    background: var(--card); 
    border-radius: var(--r-lg);
    border: 1px solid var(--border); 
    box-shadow: var(--shadow);
    overflow: hidden; 
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}
.dash-card:hover {
    box-shadow: var(--shadow-lg);
}

.dash-card-header {
    padding: 1.15rem 1.4rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.dash-card-header h2 { font-size: .95rem; font-weight: 700; color: var(--text); }
.dash-card-link {
    font-size: .8rem; color: var(--primary); text-decoration: none;
    font-weight: 600; transition: color .14s;
}
.dash-card-link:hover { color: var(--primary-dk); }

.dash-card-body { padding: .5rem 1.4rem 1.2rem; }

/* ── Dashboard List Items ────────────────── */
.dash-list-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 0; border-bottom: 1px solid #f1f5f9;
    transition: background .14s;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item:hover { background: rgba(0,166,126,.02); }

.dash-list-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--primary-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.dash-list-content { flex: 1; min-width: 0; }
.dash-list-title {
    font-size: .85rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: .15rem;
}
.dash-list-sub { font-size: .73rem; color: var(--text-3); margin-bottom: .3rem; }

.dash-list-meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.dash-chip {
    display: inline-flex; align-items: center;
    padding: .15rem .5rem; border-radius: 6px;
    font-size: .68rem; font-weight: 600;
    background: #f8fafc; color: var(--text-2); border: 1px solid #e2e8f0;
}

/* ── Dashboard Empty State ───────────────── */
.dash-empty {
    text-align: center; padding: 2.5rem 1rem; color: var(--text-3);
}
.dash-empty-icon { font-size: 2.5rem; margin-bottom: .7rem; opacity: .3; }
.dash-empty p { font-size: .85rem; margin-bottom: .5rem; }

/* ── Dashboard Trip Cards ────────────────── */
.dash-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem; padding-top: .5rem;
}
.dash-trip-card {
    border-radius: var(--r); border: 1px solid var(--border);
    overflow: hidden; transition: all .22s;
    box-shadow: var(--shadow-xs);
}
.dash-trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.dash-trip-cover {
    height: 120px; position: relative;
}
.dash-trip-price {
    position: absolute; bottom: .6rem; right: .6rem;
    background: rgba(0,0,0,.55); color: #fff;
    padding: .25rem .6rem; border-radius: 6px;
    font-size: .75rem; font-weight: 700; backdrop-filter: blur(4px);
}

.dash-trip-body { padding: .85rem; }
.dash-trip-body h3 { font-size: .88rem; font-weight: 700; margin-bottom: .3rem; color: var(--text); }
.dash-trip-body p { font-size: .75rem; color: var(--text-3); margin-bottom: .6rem; line-height: 1.5; }

/* ── Animation for cards entering ────────── */
.dash-stat-card, .dash-quick-card, .dash-card {
    animation: dashFadeUp .4s ease both;
}
.dash-stat-card:nth-child(1) { animation-delay: .05s; }
.dash-stat-card:nth-child(2) { animation-delay: .1s; }
.dash-stat-card:nth-child(3) { animation-delay: .15s; }
.dash-stat-card:nth-child(4) { animation-delay: .2s; }

.dash-quick-card:nth-child(1) { animation-delay: .1s; }
.dash-quick-card:nth-child(2) { animation-delay: .15s; }
.dash-quick-card:nth-child(3) { animation-delay: .2s; }
.dash-quick-card:nth-child(4) { animation-delay: .25s; }

@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive for new dashboard ────────── */
@media (max-width: 900px) {
    .dash-hero-content { flex-direction: column; text-align: center; }
    .dash-hero-actions { justify-content: center; }
    .dash-hero-mini-stats { justify-content: center; }
    .dash-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .dash-hero { padding: 1.5rem 1.25rem; }
    .dash-hero-text h1 { font-size: 1.2rem; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-quick-grid { grid-template-columns: 1fr 1fr; }
    .dash-quick-grid.four { grid-template-columns: 1fr 1fr; }
    .dash-trips-grid { grid-template-columns: 1fr; }
}

/* ── Reviews & Ratings ───────────────────── */
.review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: dashFadeUp .4s ease both;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-3);
}

.stars {
    color: #fbbf24;
    display: flex;
    gap: 2px;
}

.stars-inactive {
    color: #e2e8f0;
}

.review-comment {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #fbbf24;
}

.rating-input label::before {
    content: '★';
}

@media (max-width: 1024px) {
  .main, .main-content {
    margin-right: 0 !important;
    width: 100% !important;
  }
  .sidebar {
    transform: translateX(110%);
    right: 10px;
    top: 10px;
    bottom: 10px;
    height: calc(100vh - 20px);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}


