:root {
    /* Main background: Airy, modern light gray */
    --bg: #f8fafc; 
    
    /* Sidebar: Deep Navy for professional contrast */
    --side: #1e293b; 
    
    /* Card/Widget backgrounds: Pure white */
    --card: #ffffff; 
    
    /* Primary Aero Blue (#3f6ac9) */
    --mint: #3f6ac9; 
    
    /* Secondary Accents: Professional Navy/Slate */
    --violet: #334155; 
    --blue: #3f6ac9; 
    
    /* Text: High contrast charcoal */
    --text-high: #0f172a; 
    
    /* Muted text: Slate gray */
    --text-low: #64748b; 
    
    /* Borders: Soft blue-tinted gray */
    --border: rgba(63, 106, 201, 0.1); 
}

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

body {
    background-color: var(--bg);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR (Deep Contrast) --- */
.sidebar {
    width: 260px;
    background: var(--side);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    color: white;
}

.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 50px; padding-left: 15px; }
.logo span { color: var(--mint); }

.side-menu { display: flex; flex-direction: column; gap: 8px; }
.side-menu a {
    text-decoration: none;
    color: #94a3b8; /* Muted slate for dark bg */
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.side-menu a i { font-size: 1.1rem; }
.side-menu a:hover, .side-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}
.side-menu a.active i { color: var(--mint); }

.user-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.avatar { width: 35px; height: 35px; background: var(--mint); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.user-info strong { display: block; font-size: 0.85rem; color: white; }
.user-info span { font-size: 0.7rem; color: #94a3b8; }

/* --- MAIN CONTENT (Airy Light) --- */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px 5%;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.welcome h1 { font-size: 1.8rem; letter-spacing: -0.5px; color: var(--text-high); }
.welcome p { color: var(--text-low); font-size: 0.9rem; }

.header-tools { display: flex; align-items: center; gap: 20px; }
.search-box {
    background: var(--card);
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.search-box input { background: transparent; border: none; color: var(--text-high); outline: none; width: 200px; font-family: inherit; }
.btn-notification { background: var(--card); border: 1px solid var(--border); color: var(--text-low); padding: 10px; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.btn-notification:hover { color: var(--mint); background: #f1f5f9; }

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.mint .stat-icon { background: rgba(63, 106, 201, 0.1); color: var(--mint); }
.violet .stat-icon { background: rgba(51, 65, 85, 0.1); color: var(--violet); }
.blue .stat-icon { background: rgba(63, 106, 201, 0.1); color: var(--blue); }

.stat-data .label { font-size: 0.7rem; color: var(--text-low); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.stat-data .number { display: block; font-size: 1.4rem; font-weight: 800; margin-top: 4px; color: var(--text-high); }

/* --- WIDGETS --- */
.content-row { display: flex; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04); }
.widget.wide { flex: 1.5; }
.widget.small { flex: 1; }

.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.widget-header h3 { font-size: 1.1rem; color: var(--text-high); }
.btn-text { color: var(--mint); text-decoration: none; font-size: 0.85rem; font-weight: 700; }

.active-ticket-display {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

.ticket-route { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.node strong { font-size: 1.8rem; display: block; color: var(--text-high); }
.node span { color: var(--text-low); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }

.path { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.plane-line { height: 1px; flex: 1; background: #cbd5e1; }
.path i { color: var(--mint); font-size: 1rem; }

.ticket-meta { display: flex; gap: 30px; border-top: 1px solid #cbd5e1; padding-top: 20px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-low); font-weight: 500; }
.meta-item i { color: var(--mint); }

/* Trend List */
.trend-list { list-style: none; }
.trend-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}
.trend-list li:last-child { border-bottom: none; }
.trend-list li .route { font-weight: 600; color: var(--text-high); }
.trend.up { color: #10b981; font-weight: 700; font-size: 0.85rem; }
.trend.down { color: #ef4444; font-weight: 700; font-size: 0.85rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .sidebar { width: 80px; padding: 30px 10px; align-items: center; }
    .logo, .user-info, .side-menu a span { display: none; }
    .main-content { margin-left: 80px; }
    .stats-grid { grid-template-columns: 1fr; }
    .content-row { flex-direction: column; }
}