
:root {
    --rm-primary: #111827;
    --rm-primary-soft: #1f2937;
    --rm-accent: #2563eb;
    --rm-success: #16a34a;
    --rm-danger: #dc2626;
    --rm-warning: #d97706;
    --rm-bg: #f4f6f8;
    --rm-surface: #ffffff;
    --rm-border: #e5e7eb;
    --rm-text: #111827;
    --rm-muted: #6b7280;
    --rm-radius: 18px;
    --rm-shadow: 0 10px 30px rgba(17, 24, 39, .08);
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--rm-bg);
    color: var(--rm-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

.navbar-ridemate {
    background: rgba(17, 24, 39, .98);
    box-shadow: 0 6px 20px rgba(17, 24, 39, .12);
}

.navbar-ridemate .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.navbar-ridemate .nav-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 600;
    margin: 2px;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
}

.navbar-ridemate .nav-link:hover,
.navbar-ridemate .nav-link:focus {
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
}

.navbar-ridemate .navbar-text {
    color: rgba(255, 255, 255, .82);
}

.app-container {
    padding-bottom: 42px;
    padding-top: 28px;
}

.card {
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card h3,
.card h4,
.card h5 {
    font-weight: 750;
    letter-spacing: -.02em;
}

.form-control {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    min-height: 46px;
    padding: .65rem .9rem;
}

.form-control:focus {
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    min-height: 42px;
}

.btn-lg {
    min-height: 52px;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--rm-primary-soft);
    border-color: var(--rm-primary-soft);
}

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

.btn-outline-primary {
    border-color: var(--rm-accent);
    color: var(--rm-accent);
}

.alert {
    border: 0;
    border-radius: 14px;
}

.badge {
    border-radius: 999px;
    font-size: .78rem;
    padding: .45rem .7rem;
}

.table {
    color: var(--rm-text);
}

.table thead th {
    border-bottom: 1px solid var(--rm-border);
    border-top: 0;
    color: var(--rm-muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.table td {
    border-color: #eef0f3;
    vertical-align: middle;
}

.map {
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    min-height: 430px;
    overflow: hidden;
}

.route-detail-map {
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    height: 430px;
    overflow: hidden;
    width: 100%;
}

.price {
    color: var(--rm-primary);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.trip-card {
    border: 1px solid var(--rm-border);
    box-shadow: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.trip-card:hover {
    box-shadow: 0 12px 24px rgba(17, 24, 39, .09);
    transform: translateY(-2px);
}

.history-stat {
    font-size: 1.7rem;
    font-weight: 800;
}

.status-badge {
    text-transform: capitalize;
}

.search-results {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
    overflow: hidden;
}

.search-results .list-group-item {
    border-left: 0;
    border-right: 0;
    font-size: .9rem;
    padding: .85rem 1rem;
}

.current-location-wrapper {
    position: relative;
}

.current-location-dot {
    background: var(--rm-accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
    height: 14px;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 14px;
}

.current-location-pulse {
    background: rgba(37, 99, 235, .22);
    border-radius: 50%;
    height: 24px;
    left: 2px;
    position: absolute;
    top: 2px;
    width: 24px;
}

.location-status {
    color: var(--rm-muted);
    font-size: .85rem;
}

.rm-page-title {
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -.035em;
    margin-bottom: .25rem;
}

.rm-page-subtitle {
    color: var(--rm-muted);
    margin-bottom: 0;
}

.rm-section-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.rm-kicker {
    color: var(--rm-muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rm-icon-box {
    align-items: center;
    background: #eef2ff;
    border-radius: 13px;
    color: var(--rm-accent);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.rm-hero-card {
    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1f2937 100%
        );
    border: 0;
    color: #ffffff;
}

.rm-hero-card .text-muted {
    color: rgba(255, 255, 255, .66) !important;
}

.rm-status-pill {
    align-items: center;
    background: #ecfdf5;
    border-radius: 999px;
    color: #166534;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    padding: .45rem .75rem;
}

.rm-status-dot {
    background: #22c55e;
    border-radius: 50%;
    height: 8px;
    margin-right: 7px;
    width: 8px;
}

.rm-location-row {
    align-items: flex-start;
    display: flex;
}

.rm-location-pin {
    align-items: center;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    margin-right: 10px;
    margin-top: 2px;
    width: 34px;
}

.rm-location-copy {
    min-width: 0;
}

.rm-location-copy small {
    color: var(--rm-muted);
    display: block;
}

.rm-location-copy strong {
    display: block;
    line-height: 1.3;
}

.rm-summary-box {
    background: #f9fafb;
    border: 1px solid var(--rm-border);
    border-radius: 14px;
    padding: 1rem;
}

.rm-summary-value {
    font-size: 1.2rem;
    font-weight: 800;
}

.rm-login-shell {
    margin: 3rem auto;
    max-width: 720px;
    width: 100%;
}

.rm-login-shell > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.rm-login-shell .card-body {
    padding: 2.25rem 2.5rem;
}

.rm-login-shell .form-control {
    min-height: 50px;
}

.rm-login-shell .btn {
    min-height: 50px;
}

.rm-auth-brand {
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.rm-mobile-bottom {
    display: none;
}

@media (max-width: 767.98px) {

    .app-container {
        padding-bottom: 88px;
        padding-top: 18px;
    }

    .card-body {
        padding: 1.15rem;
    }

    .map {
        min-height: 380px;
    }

    .navbar-ridemate .navbar-collapse {
        padding-top: .75rem;
    }

    .rm-page-title {
        font-size: 1.4rem;
    }

    .price {
        font-size: 1.75rem;
    }

    .table {
        font-size: .88rem;
    }

    .rm-mobile-bottom {
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--rm-border);
        bottom: 0;
        display: flex;
        justify-content: space-around;
        left: 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 3000;
    }

    .rm-mobile-bottom a {
        align-items: center;
        color: var(--rm-muted);
        display: flex;
        flex: 1;
        flex-direction: column;
        font-size: .7rem;
        font-weight: 700;
        gap: 2px;
        justify-content: center;
        min-height: 48px;
        text-decoration: none;
    }

    .rm-mobile-bottom i {
        font-size: 1.05rem;
    }

    .rm-mobile-bottom a:hover,
    .rm-mobile-bottom a:focus {
        color: var(--rm-primary);
    }
}


@media (max-width: 767.98px) {

    .rm-login-shell {
        margin: 1.25rem auto;
        max-width: 100%;
    }

    .rm-login-shell .card-body {
        padding: 1.35rem;
    }
}


.pwa-update-box {
    align-items: center;
    background: #111827;
    border-radius: 16px;
    bottom: 18px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, .24);
    color: #ffffff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    left: 50%;
    max-width: 560px;
    padding: 14px 16px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 5000;
}

.pwa-update-box small {
    color: rgba(255, 255, 255, .68);
    display: block;
    margin-top: 2px;
}

@media (max-width: 767.98px) {

    .pwa-update-box {
        bottom: 78px;
    }
}
