@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: #334155;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 80px; /* Space for bottom nav */
}

.font-pro {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-eta {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 1rem;
    outline: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
}

.input-eta:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.btn-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
    transition: transform 0.2s;
    border: none;
}

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

.compact-load-card {
    background: white;
    border: 1px solid #F1F5F9;
    border-left: 6px solid #F97316;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.compact-load-card:active {
    transform: scale(0.98);
    background: #FFF7ED;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

#paymentModal {
    z-index: 99999 !important;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid;
    animation: slideIn 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.toast.success {
    border-color: #22C55E;
    color: #064E3B;
}

.toast.info {
    border-color: #3B82F6;
    color: #1E3A8A;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: #F97316;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- NEW ADDITIONS FOR MODERN UI --- */

/* Leaflet Map */
#mapContainer {
    height: 180px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 1rem;
    z-index: 0;
    border: 2px solid #E2E8F0;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px 25px 10px; /* Extra padding for iPhone home bar */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
    z-index: 9000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94A3B8;
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.nav-item.active {
    color: #F97316;
}

.nav-item.active i {
    transform: translateY(-3px);
}

.nav-fab {
    background: #F97316;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-top: -35px;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    border: 4px solid #F8FAFC;
    cursor: pointer;
    transition: transform 0.2s;
}
.nav-fab:active {
    transform: scale(0.95);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E0F2FE;
    color: #0284C7;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}
