:root {
    --bg-page: #f4f4f5; /* clean light gray */
    --canvas-bg: #ffffff;
    --app-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #09090b;
    --text-muted: #71717a;
    --primary-blue: #0ea5e9;
    --primary-dark: #0284c7;
    --border-color: #e4e4e7;
    
    /* Apple-esque subtle shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -15px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

/* Outer Presentation Canvas */
.presentation-canvas {
    width: 100%;
    max-width: 1400px;
    background-color: var(--canvas-bg);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

/* Presentation Header */
.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem 2rem;
}

.header-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo-box {
    width: 60px; height: 60px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 1.8rem;
}

.title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}
.title-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.header-right {
    display: flex;
    gap: 1rem;
}
.feature-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.blue-bg { background-color: var(--primary-blue); }
.green-bg { background-color: #10b981; }

/* Mockup Container */
.mockup-container {
    padding: 0 4rem 4rem;
    width: 100%;
}

/* Dashboard UI Layout */
.dashboard-ui {
    display: flex;
    width: 100%;
    height: 750px;
    background: var(--app-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.brand {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 3rem; color: var(--text-dark);
    padding: 0 0.5rem;
}
.brand-icon { font-size: 1.4rem; }

.side-menu {
    display: flex; flex-direction: column; gap: 0.2rem; flex: 1;
}
.side-menu a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    display: flex; align-items: center; gap: 0.8rem;
    font-weight: 500; font-size: 0.9rem;
    transition: 0.2s;
}
.side-menu a:hover { background: #f4f4f5; color: var(--text-dark); }
.side-menu a.active {
    background: #f0f9ff;
    color: var(--primary-dark);
    font-weight: 600;
}

.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 1rem;}
.user-profile { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem; cursor: pointer; border-radius: 8px; transition: 0.2s;}
.user-profile:hover { background: #f4f4f5; }
.user-profile img { width: 36px; height: 36px; border-radius: 50%; }
.user-info { display: flex; flex-direction: column; }
.user-info b { font-size: 0.85rem; font-weight: 600;}
.user-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Main Dashboard Area */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

/* Topbar */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem;
}
.topbar h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;}

.topbar-right { display: flex; align-items: center; gap: 1rem; }
.search-bar {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--card-bg); padding: 0.5rem 1rem; border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 250px;
}
.search-bar input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 0.85rem; width: 100%;}
.icon-btn { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm);}
.primary-btn { background: var(--text-dark); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-family: inherit; font-weight: 500; font-size: 0.85rem; cursor: pointer;}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 150px 250px;
    gap: 1.5rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;}
.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-dark);}
.card-header a { font-size: 0.8rem; color: var(--primary-blue); text-decoration: none; font-weight: 500;}
.subtitle { font-size: 0.8rem; color: var(--text-muted); }

/* Map Card */
.map-card {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.map-header { position: absolute; top: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); margin: 0;}
.filter-btn { background: #f4f4f5; border: none; padding: 0.4rem 0.8rem; border-radius: 6px; font-family: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer;}

.map-container { width: 100%; height: 100%; position: relative; }
.map-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.1) opacity(0.8);}

.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); cursor: pointer; z-index: 5;}
.pin-marker { width: 16px; height: 16px; background: var(--primary-blue); border: 3px solid white; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.pin-marker.warning { background: #f59e0b; }
.pin-marker.success { background: #10b981; }
.pin-tooltip { background: white; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.7rem; text-align: center; box-shadow: var(--shadow-md); margin-top: 5px; opacity: 0; transition: 0.2s; border: 1px solid var(--border-color); position: absolute; top: 100%; width: max-content;}
.map-pin:hover .pin-tooltip { opacity: 1; }


/* Stat Cards */
.stat-card { grid-column: span 1; justify-content: space-between; flex-direction: row; align-items: flex-start;}
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white;}
.stat-content { display: flex; flex-direction: column; margin-left: 1rem; flex: 1;}
.stat-content span { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem;}
.stat-content h3 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;}
.trend { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 6px; background: #ecfdf5; color: #059669;}

/* Chart Card */
.chart-card { grid-column: span 2; }
.chart-area { display: flex; justify-content: space-around; align-items: flex-end; height: 130px; margin-top: auto;}
.bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; height: 100%; justify-content: flex-end;}
.bar { width: 24px; background: #e0f2fe; border-radius: 4px; transition: 0.3s; cursor: pointer;}
.bar:hover { background: var(--primary-blue); }
.bar-wrap span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500;}

/* Drivers List Card */
.drivers-card { grid-column: span 2; }
.driver-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem;}
.driver-item { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.driver-item:last-child { border-bottom: none; padding-bottom: 0; }
.driver-item img { width: 40px; height: 40px; border-radius: 50%; }
.d-info { display: flex; flex-direction: column; flex: 1; }
.d-info b { font-size: 0.9rem; color: var(--text-dark); font-weight: 600;}
.d-info span { font-size: 0.8rem; color: var(--text-muted); }
.status-badge { font-size: 0.7rem; font-weight: 500; padding: 0.3rem 0.6rem; border-radius: 6px;}
.status-badge.transit { background: #eff6ff; color: #1d4ed8; }
.status-badge.done { background: #ecfdf5; color: #047857; }
