/* identique style for mobile and wasm */

:root {
    --primary-color: #768eb6;
    --secondary-color: #48679c;
    --text-color: #333;
    /*    --bg-color: #f8f9fa;*/
    --bg-color: #eef1f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
}

.user-name {
    font-weight: 500;
}

/* Card styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/*Schedule_page*/
.column {
    flex: 1;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.date {
    display: flex;
    justify-content: center;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}


.date {
    display: flex;
    justify-content: center;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

.flex-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

    .flex-3 > .column {
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
    }


.column > div:first-child {
    text-align: center; /* only the date is in the center */
    font-weight: bold;
    margin-bottom: 10px;
}

.time-input {
    margin: 5px 0;
}

.trip-box, .move {
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 8px;
    margin-top: 5px;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.search-box {
    background-color: #adb5bd;
    border-radius: 20px;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    min-height: 40px; /* seeing even empty */
    text-align: center;
    color: #f8f9fa;
}


/*MEDIAQUERIES*/
.mud-drawer {
    width: 400px; /* desktop */
}

@media (max-width: 768px) {
    .mud-drawer {
        width: 100%; /* mobile */
    }
}

@media (max-width: 959.98px) {
    .driver-info {
        font-size: 0.75rem;
    }

    .trip-label {
        font-size: 0.85rem;
    }
}

#blazor-error-ui {
    background-color: #fff; /* blanc */
    color: #000; /* texte noir */
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,.2);
}

/* ============================================================
   Reusable UI style kit (extracted from the privacy page)
   ============================================================ */

/* Section card: colored left border + hover lift */
.section-card {
    border-radius: 10px !important;
    border-left: 10px solid var(--mud-palette-primary);
    transition: all 0.2s ease;
}

    .section-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-2px);
    }

    .section-card.full-height {
        height: 100%;
    }

.content-narrow {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Page hero header: subtle gradient panel */
.page-hero {
    background: linear-gradient(135deg, rgba(0, 44, 119, 0.03), rgba(97, 123, 168, 0.06));
    border-radius: 12px;
    border: 1px solid rgba(0, 44, 119, 0.08);
}

/* Subtle inner panel for secondary info */
.subtle-panel {
    background: var(--mud-palette-info);
    border-radius: 8px;
}

/* Soft body text */
.section-text {
    line-height: 1.7;
    color: #4a4a4a;
}

/* Page hero: eyebrow + title + subtitle (reusable across pages) */
.hero-eyebrow {
    color: #617ba8;
    font-weight: 700;
}

.hero-title {
    color: #172033;
    font-weight: 800 !important;
    line-height: 1.15;
    font-size: 1.75rem;
}

.hero-subtitle {
    color: #5d6675;
    max-width: 58ch;
    margin-top: 4px;
}



.drawer-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #ffffff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002c77;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.address-title {
    font-weight: 700;
    color: #172033;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.setting-icon {
    color: #002c77 !important;
    flex: 0 0 auto;
}

.setting-info {
    flex: 1;
    min-width: 0;
}

.setting-label {
    font-weight: 500;
    color: #172033;
}

.setting-desc {
    font-size: 0.78rem;
    color: #6e6e6e;
}

.drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.drawer-header-icon {
    color: #002c77 !important;
}

.drawer-header-title {
    flex: 1;
    font-weight: 800;
    font-size: 1.05rem;
    color: #172033;
}

.drawer-header-chevron {
    color: #6e6e6e !important;
}

.schedule-tabs-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-tab-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .schedule-tab-card:hover {
        border-color: #617ba8;
    }

    .schedule-tab-card.active {
        background: rgba(0, 44, 119, 0.06);
        border-color: #002c77;
    }

    .schedule-tab-card .schedule-tab-icon {
        color: #002c77 !important;
        flex: 0 0 auto;
    }

    .schedule-tab-card .schedule-tab-title {
        font-weight: 700;
        color: #172033;
        display: block;
    }

    .schedule-tab-card.active .schedule-tab-title {
        color: #002c77;
    }

    .schedule-tab-card .schedule-tab-subtitle {
        font-size: 0.72rem;
        color: #6e6e6e;
        display: block;
    }

.schedule-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ============ Rewards page ============ */
.rewards-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 4px;
}

.rewards-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 24px;
}

.rewards-header-icon {
    color: #002c77 !important;
    font-size: 2.4rem !important;
}

.rewards-title {
    font-weight: 800;
    font-size: 1.6rem;
    color: #172033;
    margin: 0;
}

.rewards-subtitle {
    color: #5d6675;
    margin: 2px 0 0;
    font-size: 0.9rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.15s ease;
}

    .badge-card.unlocked {
        border-color: #002c77;
        background: rgba(0, 44, 119, 0.04);
    }

        .badge-card.unlocked:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 44, 119, 0.12);
        }

    .badge-card.locked {
        opacity: 0.55;
        filter: grayscale(1);
    }

.badge-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    font-size: 2.6rem !important;
    color: #002c77 !important;
}

.badge-lock {
    position: absolute;
    right: -6px;
    bottom: -6px;
    font-size: 1.1rem !important;
    color: #6e6e6e !important;
    background: #fff;
    border-radius: 50%;
}

.badge-name {
    font-weight: 700;
    color: #172033;
    font-size: 0.95rem;
}

.badge-goal {
    font-size: 0.78rem;
    color: #6e6e6e;
}
/* ============ Statistics page ============ */
.stats-hero {
    margin-bottom: 20px;
}

    .stats-hero .hero-title {
        color: #002c77;
    }

    .stats-hero .hero-subtitle {
        max-width: none;
        white-space: nowrap;
    }

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 auto;
}

    .stat-icon .mud-icon-root {
        font-size: 1.5rem;
    }

.stat-icon-blue {
    background: rgba(0, 44, 119, 0.08);
    color: #002c77;
}

.stat-icon-green {
    background: rgba(46, 160, 90, 0.12);
    color: #2ea05a;
}

.stat-icon-amber {
    background: rgba(240, 170, 30, 0.15);
    color: #e08a00;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 800;
    font-size: 1.5rem;
    color: #172033;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #6e6e6e;
}

.chart-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chart-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #172033;
    font-size: 1rem;
}

.chart-header-icon {
    color: #002c77 !important;
}

.chart-header-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6e6e6e;
    font-size: 0.8rem;
}

.chart-badge-icon {
    font-size: 1rem !important;
    color: #6e6e6e !important;
}

/* ============ Documents page ============ */
.documents-hero {
    margin-bottom: 16px;
}

    .documents-hero .hero-title {
        color: #002c77;
    }

.doc-current-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #002c77;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.doc-current-icon {
    width: 56px;
    height: 56px;
}

.doc-current-body {
    flex: 1;
    min-width: 0;
}

.doc-current-title {
    color: #002c77;
    font-weight: 800;
}

.doc-current-sub {
    color: #6e6e6e;
    margin: 2px 0 12px;
}

.doc-download-btn {
    background-color: #002c77 !important;
    color: #fff !important;
    border-radius: 8px;
}

.doc-current-art {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 44, 119, 0.05);
    border-radius: 50%;
}

.doc-art-doc {
    font-size: 3rem !important;
    color: #9fb0cc !important;
}

.doc-art-check {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #002c77;
    border-radius: 50%;
}

    .doc-art-check .mud-icon-root {
        font-size: 1rem;
        color: #fff;
    }

.doc-section-title {
    color: #002c77;
    font-weight: 800;
    margin-bottom: 12px;
}

.doc-table {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 6px 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

    .doc-table .mud-table-head th {
        background: #f5f7fa;
        color: #172033;
        font-weight: 700;
    }

.doc-th {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #002c77;
}

    .doc-th .mud-icon-root {
        font-size: 1.1rem;
    }

.doc-th-end {
    justify-content: flex-end;
    width: 100%;
}

.doc-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #172033;
}

    .doc-month .mud-icon-root {
        color: #617ba8;
        font-size: 1.1rem;
    }

.doc-td-end {
    text-align: right;
}

.doc-row-btn {
    border-color: #002c77 !important;
    color: #002c77 !important;
    border-radius: 999px !important;
}

/* ============ CarpoolWork page ============ */
/*.carpoolwork-hero {
    margin-bottom: 20px;
    padding-top: 12px;
    padding-left: 16px
}
*/
.carpoolwork-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(97, 123, 168, 0.06), rgba(0, 44, 119, 0.18));
    border: 1px solid rgba(0, 44, 119, 0.08);
    border-radius: 14px;
}


.carpoolwork-hero-art {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 160, 90, 0.12);
    border-radius: 50%;
}

    .carpoolwork-hero-art .mud-icon-root {
        font-size: 1.6rem;
        color: #e08a00;
    }

.carpoolwork-hero .hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.carpoolwork-hero .hero-title {
    color: #002c77;
    margin-bottom: 6px;
}

.pro-day-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002c77;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 20px 0 10px;
}

    .pro-day-label .mud-icon-root {
        font-size: 1.1rem;
    }

.pro-trip-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}

    .pro-trip-card:hover {
        border-color: #617ba8;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }

.pro-trip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
}

.pro-trip-route {
    font-weight: 700;
    color: #172033;
}

.pro-trip-badge {
    padding: 3px 10px;
    background: rgba(240, 138, 0, 0.12);
    color: #e08a00;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
/*.pro-day-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 959.98px) {
    .pro-day-grid {
        grid-template-columns: 1fr;
    }
}*/
.pro-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.pro-trip-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #172033;
    min-width: 64px;
}

    .pro-trip-time .mud-icon-root {
        color: #617ba8;
        font-size: 1.1rem;
    }

.pro-trip-footer {
    padding: 0 14px 14px;
}

.pro-no-driver {
    color: #c0392b;
    font-size: 0.85rem;
    padding: 2px 0 6px;
}

.pro-trip-btn {
    border-color: #002c77 !important;
}

.pro-driver-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002c77;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-left: 16px;
}

    .pro-driver-title .mud-icon-root {
        font-size: 1.2rem;
    }


.pro-driver-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pro-driver-info-icon {
    color: #617ba8 !important;
    flex: 0 0 auto;
}

/* ============ Carpooling page (trip cards) ============ */
.carpool-trip-card {
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    transition: all 0.15s ease;
}

    .carpool-trip-card:hover {
        border-color: #617ba8 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    }

.carpool-page {
    padding-left: 16px;
    padding-right: 16px;
}

.carpool-info-alert {
    background-color: rgba(0, 44, 119, 0.06) !important;
    color: #172033 !important;
}

    .carpool-info-alert .mud-icon-root {
        color: #002c77 !important;
    }

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.chat-empty-icon {
    width: 72px;
    height: 72px;
}

    .chat-empty-icon .mud-icon-root {
        font-size: 2.4rem;
    }

.chat-empty-text {
    color: #617ba8 !important;
}

.chat-broadcast-switch .mud-typography {
    color: #002c77 !important;
    font-weight: 600;
    font-family: Tahoma, Geneva, sans-serif;
}

.chat-header-avatar {
    background-color: #002c77 !important;
    color: #ffffff !important;
}

.carpool-trip-card .mud-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 610px) {
    .carpool-trip-card .mud-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.carpool-trip-card .mud-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 610px) {
    .carpool-trip-card .mud-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 959.98px) {
    .carpoolwork-hero {
        background: linear-gradient(135deg, rgba(97, 123, 168, 0.06), rgba(0, 44, 119, 0.18));
    }
}
