/* ============================================================
   THE KING OF NORTHERN - Complete CSS
   ============================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f0eb;
    color: #2c3e50;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

.logo .crown {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #f1c40f, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.9rem;
    color: #f1c40f;
    border: 1px solid #f1c40f;
    padding: 5px 15px;
    border-radius: 20px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================================
   REQUEST SECTION
   ============================================================ */
.request-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.request-section h2 {
    font-size: 2rem;
    color: #1a1a2e;
}

.request-section .subtitle {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #f39c12;
    outline: none;
}

.form-group input:nth-child(3),
.form-group input:nth-child(4) {
    grid-column: 1 / -1;
}

.vehicle-selection {
    grid-column: 1 / -1;
}

.vehicle-selection label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.vehicle-selection select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.btn-request {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   DRIVER INFO
   ============================================================ */
.driver-info {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 2px solid #f39c12;
}

.driver-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.driver-avatar {
    font-size: 4rem;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 50%;
    border: 3px solid #f39c12;
}

.driver-details h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.driver-details p {
    margin: 5px 0;
}

/* ============================================================
   NEARBY DRIVERS
   ============================================================ */
.nearby-drivers {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.nearby-driver-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.3s;
}

.nearby-driver-card:hover {
    background: #f8f9fa;
}

.nearby-driver-card .driver-icon {
    font-size: 2rem;
}

.nearby-driver-card p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map {
    background: linear-gradient(135deg, #e8dcc8, #d5c4a1);
    border-radius: 15px;
    min-height: 300px;
    position: relative;
    padding: 20px;
}

.map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid #f39c12;
}

.city-marker {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.city-marker.garissa { top: 35%; left: 20%; }
.city-marker.wajir { top: 30%; left: 35%; }
.city-marker.mandera { top: 20%; left: 50%; }
.city-marker.lodwar { top: 10%; left: 10%; }
.city-marker.isiolo { top: 55%; left: 30%; }
.city-marker.marsabit { top: 5%; left: 30%; }
.city-marker.moyale { top: 2%; left: 45%; }
.city-marker.turbi { top: 5%; left: 55%; }

/* ============================================================
   DRIVER DASHBOARD
   ============================================================ */
.driver-login {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.driver-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-logout {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c0392b;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-card .label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.stat-card.revenue .number {
    color: #27ae60;
}

/* ============================================================
   REQUEST CARDS
   ============================================================ */
.request-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.status-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.pending {
    background: #f39c12;
    color: white;
}

.status-badge.confirmed {
    background: #27ae60;
    color: white;
}

.status-badge.completed {
    background: #3498db;
    color: white;
}

.request-body p {
    margin: 5px 0;
}

.request-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.btn-confirm {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.btn-confirm:hover {
    background: #219a52;
}

.btn-complete {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.btn-complete:hover {
    background: #2980b9;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .form-group {
        grid-template-columns: 1fr;
    }
    .form-group input:nth-child(3),
    .form-group input:nth-child(4) {
        grid-column: 1;
    }
    .driver-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .map {
        min-height: 200px;
    }
    .city-marker {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    .driver-profile {
        flex-direction: column;
        text-align: center;
    }
    .btn-logout {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-img {
        height: 40px;
    }
    .request-section h2 {
        font-size: 1.5rem;
    }
    .btn-request {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
