/* assets/css/driver.css */
:root {
    --primary: #0056D2;
    --primary-dark: #0041a3;
    --primary-light: #e6f0ff;
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --success: #28a745;
    --offline: #6c757d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 80px;
}

/* Header */
.app-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-greeting h2 { font-size: 18px; font-weight: 600; }
.user-greeting p { font-size: 13px; opacity: 0.9; }

/* Balance Card */
.balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-label { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.balance-amount { font-size: 28px; font-weight: 700; margin-bottom: 12px; }

.btn-topup {
    background: white;
    color: var(--primary);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* Status Toggle Section */
.status-section {
    background: var(--bg-card);
    margin: -20px 16px 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.status-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.status-info p { font-size: 13px; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--offline);
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(26px); }

/* Main Content */
.main-content { padding: 0 16px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-main); }

/* Order Card */
.order-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.order-card.food { border-left-color: #ff9f43; }

.order-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.order-id { font-size: 13px; font-weight: 700; color: var(--primary); }
.order-type { 
    font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; 
    background: var(--primary-light); color: var(--primary);
}
.order-type.food { background: #fff3e0; color: #ff9f43; }

.order-route { margin-bottom: 16px; }
.route-point { display: flex; gap: 10px; margin-bottom: 10px; position: relative; }
.route-point:last-child { margin-bottom: 0; }
.route-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot-start { background: var(--success); }
.dot-end { background: #ff4757; }
.route-text { font-size: 14px; color: #333; line-height: 1.4; }

.order-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; border-top: 1px dashed #e0e0e0;
}
.order-price { font-size: 16px; font-weight: 700; color: var(--text-main); }

.btn-action {
    background: var(--primary); color: white; border: none; padding: 10px 20px;
    border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: none; display: inline-block;
}

.empty-state {
    text-align: center; padding: 40px 20px; color: var(--text-muted);
    background: var(--bg-card); border-radius: var(--border-radius);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card);
    display: flex; justify-content: space-around; padding: 12px 0 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); z-index: 100;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 500; flex: 1;
}
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 24px; height: 24px; }