:root {
    --mvd-navy: #0b3d68;
    --mvd-navy-dark: #082c4b;
}

body {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mvd-header {
    background-color: var(--mvd-navy);
}

.mvd-header .navbar-brand {
    color: #fff;
    font-weight: 600;
}

.mvd-header .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.mvd-header .nav-link.active,
.mvd-header .nav-link:hover {
    color: #fff;
}

.mvd-sidebar {
    background-color: #fff;
    border-right: 1px solid #e3e6ea;
    min-height: calc(100vh - 56px);
}

.mvd-sidebar .nav-link {
    color: #33475b;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.mvd-sidebar .nav-link.active {
    background-color: var(--mvd-navy);
    color: #fff;
}

.mvd-sidebar .nav-link:hover:not(.active) {
    background-color: #eef2f6;
}

.mvd-main {
    flex: 1;
    padding: 1.5rem;
}

.mvd-stat-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mvd-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

a.mvd-stat-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.mvd-stat-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: inherit;
}

.mvd-stat-cell {
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.mvd-stat-cell:hover {
    color: var(--mvd-navy);
    text-decoration: underline;
}

.mvd-footer {
    background-color: var(--mvd-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.mvd-auth-wrapper {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef3f8 0%, #f4f6f9 100%);
}

.mvd-calendar-table td {
    padding: 0.15rem;
}

.mvd-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto;
    border-radius: 50%;
    text-decoration: none;
    color: #33475b;
    font-weight: 500;
}

a.mvd-calendar-day {
    background-color: #eaf3ff;
    color: var(--mvd-navy);
}

a.mvd-calendar-day:hover {
    background-color: var(--mvd-navy);
    color: #fff;
}

.mvd-calendar-day.selected {
    background-color: var(--mvd-navy) !important;
    color: #fff !important;
}

.mvd-calendar-day.disabled {
    color: #c3cbd4;
    background-color: transparent;
}

.mvd-calendar-day.today {
    box-shadow: inset 0 0 0 2px #f0ad4e;
}

.mvd-calendar-day.holiday {
    background-color: #fbe1e1 !important;
    color: #c0392b !important;
}

.mvd-calendar-legend-dot.holiday {
    background-color: #fbe1e1;
    box-shadow: inset 0 0 0 1px #c0392b;
}

.mvd-calendar-legend-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: #eaf3ff;
    box-shadow: inset 0 0 0 1px #c3cbd4;
}

.mvd-calendar-legend-dot.bookable {
    background-color: #eaf3ff;
    box-shadow: inset 0 0 0 1px var(--mvd-navy);
}

.mvd-slot-option {
    display: block;
    cursor: pointer;
}

.mvd-slot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mvd-slot-option .mvd-slot-box {
    border: 1px solid #dfe4ea;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.mvd-slot-option input:checked + .mvd-slot-box {
    border-color: var(--mvd-navy);
    background-color: #eaf3ff;
    box-shadow: 0 0 0 1px var(--mvd-navy);
}

.mvd-slot-option.full .mvd-slot-box {
    opacity: 0.5;
}

.mvd-map-marker-pulse {
    position: relative;
    width: 24px;
    height: 24px;
}

.mvd-map-marker-pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background: #c0392b;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.mvd-map-marker-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.65);
    animation: mvd-marker-pulse 1.4s ease-out infinite;
    z-index: 1;
}

@keyframes mvd-marker-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

.mvd-map-pin svg {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

/* Shared narrow single-column form card (replaces one-off inline max-width styles) */
.mvd-narrow-card {
    max-width: 480px;
}

/* Inspection-point map: fixed height on desktop, capped by viewport height on short screens */
.mvd-inspection-map {
    height: min(400px, 50vh);
}

/* Fullscreen modal header: clears the notch/status bar on installed-PWA iOS devices */
.mvd-modal-header-safe {
    padding-top: max(1rem, env(safe-area-inset-top));
}

/* Citizen mobile bottom tab bar */
.mvd-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background-color: #fff;
    border-top: 1px solid #e3e6ea;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
}

.mvd-bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.25rem;
    color: #6c7a89;
    text-decoration: none;
    font-size: 0.68rem;
    line-height: 1.1;
}

.mvd-bottom-nav-tab i {
    font-size: 1.15rem;
}

.mvd-bottom-nav-tab.active {
    color: var(--mvd-navy);
}

@media (max-width: 767.98px) {
    body.citizen-app {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
}
