/* App background and base styles */
body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: #22223b;
    font-size: 1rem;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:active, a:focus {
    color: #1d4ed8;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
}

button {
    background: linear-gradient(90deg, #2563eb 60%, #22c55e 100%);
    color: #fff;
    padding: 14px 0;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.12rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

button:active {
    background: linear-gradient(90deg, #1d4ed8 60%, #16a34a 100%);
    box-shadow: 0 2px 18px rgba(44,62,80,0.12);
}

.login-container, .dashboard-container, .profile-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 38px 12px 80px 12px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(44,62,80,0.12);
    margin-top: 24px;
}

.login-title, .dashboard-title, .profile-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 22px;
}

.input-label {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: #22223b;
    font-size: 1.08rem;
}

.otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.otp-input {
    width: 44px;
    height: 54px;
    font-size: 1.7rem;
    text-align: center;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: #2563eb;
}

.error-msg {
    color: #ef4444;
    text-align: center;
    margin-bottom: 16px;
    white-space: pre-line;
    font-size: 1.08rem;
    font-weight: 600;
    background: #fee2e2;
    border-radius: 8px;
    padding: 8px 0;
}

.vendor-list, .trip-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vendor-card, .trip-card {
    background: linear-gradient(90deg, #f1f5f9 60%, #e0e7ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    padding: 22px 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.vendor-card:hover, .trip-card:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}

.vendor-logo, .profile-pic {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: #e0e7ff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
}

.vendor-name {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
}

.profile-card {
    background: linear-gradient(90deg, #f1f5f9 60%, #e0e7ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    padding: 22px 16px;
}

.profile-pic {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e7ff;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
}

.profile-row {
    margin-bottom: 16px;
    font-size: 1.12rem;
    color: #22223b;
}

.logout-btn {
    width: 100%;
    background: linear-gradient(90deg, #ef4444 60%, #f87171 100%);
    color: #fff;
    padding: 14px 0;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.15rem;
    border: none;
    cursor: pointer;
    margin-top: 22px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}

.logout-btn:active {
    background: linear-gradient(90deg, #b91c1c 60%, #f87171 100%);
}

/* Navbar styles */
.captain-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #2563eb 60%, #22c55e 100%);
    box-shadow: 0 -2px 12px rgba(44,62,80,0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 12px 0;
    border-radius: 18px 18px 0 0;
}

.captain-navbar a {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.captain-navbar a:active {
    color: #e0e7ff;
}

.captain-navbar div {
    font-size: 1rem;
    font-weight: 600;
}

/* Slider styles */
.slider-container {
    width: 100%;
    max-width: 340px;
    margin: 24px auto;
}

#slider-label {
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 1.08rem;
}

#slider-track {
    background: #e0e7ff;
    border-radius: 24px;
    position: relative;
    height: 54px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}

#slider-thumb {
    width: 54px;
    height: 54px;
    background: linear-gradient(90deg, #2563eb 60%, #22c55e 100%);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: left 0.2s;
    box-shadow: 0 2px 12px rgba(44,62,80,0.12);
}

#slider-thumb i {
    color: #fff;
    font-size: 2.2rem;
}

/* Modal styles */
#modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(44,62,80,0.18);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#modal-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    padding: 38px 24px;
    max-width: 340px;
    width: 90%;
    position: relative;
}

#modal-content {
    font-size: 1.18rem;
    color: #2563eb;
    text-align: center;
    font-weight: 700;
}

#modal-confirm-btn {
    background: linear-gradient(90deg, #22c55e 60%, #2563eb 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1.08rem;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}

#modal-card button {
    margin-left: 12px;
}

.close-btn {
    background: linear-gradient(90deg, #ef4444 60%, #f87171 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 700;
    cursor: pointer;
    float: right;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Collapsible bars and details */
.bar {
    background: linear-gradient(90deg, #e0e7ff 60%, #f1f5f9 100%);
    border-radius: 14px;
    padding: 16px 22px;
    margin-top: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}

.bar span {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.08rem;
}

.details {
    display: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
    padding: 22px 18px;
    margin-top: 10px;
    font-size: 1.08rem;
    color: #22223b;
}

/* Responsive styles */
@media (max-width: 500px) {
    .login-container, .dashboard-container, .profile-container {
        padding: 12px 2px 80px 2px;
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
    }
    .login-title, .dashboard-title, .profile-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    .captain-navbar {
        font-size: 1.3rem;
        border-radius: 14px 14px 0 0;
        padding: 10px 0;
    }
    .slider-container {
        max-width: 98vw;
    }
    #modal-card {
        padding: 18px 8px;
        border-radius: 18px;
    }
    .bar {
        padding: 12px 8px;
        font-size: 1rem;
    }
    .details {
        padding: 14px 8px;
        font-size: 1rem;
    }
}