/* ============================================
   LG Taxi - Simple & Clear UI for Tier-3 Cities
   Large text, big buttons, high contrast
   ============================================ */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 18px;          /* Larger base for readability */
    line-height: 1.5;
    color: var(--dark);
    background: #f0f2f5;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    background: var(--primary);
    color: white;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.logo span {
    background: white;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    font-size: 16px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 100px;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

/* ========== BUTTONS - BIG & CLEAR ========== */
.btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-lg {
    padding: 18px 24px;
    font-size: 20px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 16px;
    width: auto;
    display: inline-block;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    outline: none;
    transition: border 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
}

select.form-control {
    appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 16px center;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.alert-info {
    background: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

/* ========== DRIVER CARD ========== */
.driver-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border: 2px solid transparent;
}

.driver-card.selected {
    border-color: var(--primary);
}

.driver-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
    flex-shrink: 0;
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.driver-rating {
    color: #f59e0b;
    font-weight: 600;
    font-size: 16px;
}

.driver-fare {
    font-size: 22px;
    font-weight: 700;
    color: var(--success);
}

.verified-badge {
    display: inline-block;
    background: #d1e7dd;
    color: #0f5132;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 6px;
}

/* ========== RIDE STATUS ========== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-requested { background: #cff4fc; color: #055160; }
.status-accepted { background: #fff3cd; color: #664d03; }
.status-started { background: #cfe2ff; color: #084298; }
.status-completed { background: #d1e7dd; color: #0f5132; }
.status-cancelled { background: #f8d7da; color: #842029; }

/* ========== BOTTOM NAV (Mobile) ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .icon {
    font-size: 24px;
    margin-bottom: 2px;
}

/* ========== HERO / LANDING ========== */
.hero {
    text-align: center;
    padding: 30px 16px;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark);
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 24px;
}

.route-box {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.route-arrow {
    text-align: center;
    font-size: 28px;
    color: var(--primary);
    margin: 8px 0;
}

/* ========== WALLET ========== */
.wallet-card {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.wallet-balance {
    font-size: 36px;
    font-weight: 700;
    margin: 8px 0;
}

.wallet-label {
    font-size: 14px;
    opacity: 0.9;
}

.negative-balance {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray); }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.fw-bold { font-weight: 700; }

/* Big number display */
.big-number {
    font-size: 32px;
    font-weight: 700;
}

/* OTP boxes */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-inputs input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 10px;
}

/* Responsive small adjustments */
@media (max-width: 400px) {
    body { font-size: 16px; }
    .btn { font-size: 17px; padding: 14px 16px; }
}
