/* Global simple style baseline: compact, neutral, no animation */

:root {
    --ui-text: #111827;
    --ui-muted: #4b5563;
    --ui-border: #d1d5db;
    --ui-bg: #f3f4f6;
    --ui-surface: #ffffff;
    --ui-accent: #1d4ed8;
    --ui-radius: 6px;
    --navbar-height: 56px;
}

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

html {
    font-size: 14px;
}

body {
    background: var(--ui-bg);
    color: var(--ui-text);
    line-height: 1.45;
}

main#main {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    background: #111827;
    color: #fff;
    z-index: 10000;
    padding: 6px 10px;
    border-radius: 4px;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1020px;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.45rem; }
h3, .h3 { font-size: 1.2rem; }
h4, .h4 { font-size: 1.05rem; }

section,
.page-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.navbar {
    min-height: 56px;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

.navbar-brand .brand-text {
    color: #111827 !important;
}

.navbar-brand .brand-accent {
    color: #2563eb !important;
}

.navbar-brand span {
    color: inherit !important;
}

.nav-link {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.95rem;
    border-radius: var(--ui-radius);
    border: 1px solid transparent;
    color: #374151 !important;
}

.nav-link:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827 !important;
}

.nav-link.active {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e3a8a !important;
}

.dropdown-menu {
    border-radius: var(--ui-radius);
    border: 1px solid var(--ui-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 0.35rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
}

.card,
.profile-card,
.kpi-card,
.signal-card,
.stat-card {
    border-radius: var(--ui-radius) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn {
    border-radius: var(--ui-radius) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.42rem 0.75rem;
}

.btn-lg {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--ui-accent) !important;
    border-color: var(--ui-accent) !important;
}

.btn-dark {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
}

.btn-secondary {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

.nav-account-link,
.nav-login-link {
    color: #374151 !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-account-link:hover,
.nav-login-link:hover {
    color: #111827 !important;
}

.nav-signup-link {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff !important;
    padding: 0.42rem 0.8rem;
    border-radius: var(--ui-radius);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-signup-link:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.navbar-toggler {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.3rem 0.45rem;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,24,39,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.form-control,
.form-select {
    min-height: 34px;
    border-radius: var(--ui-radius);
    border-color: var(--ui-border);
    font-size: 0.92rem;
    padding: 0.4rem 0.6rem;
}

.table {
    font-size: 0.9rem;
}

.table th,
.table td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.badge {
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
}

.compact-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid #1f3a8a;
    color: #e5e7eb;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
}

.compact-footer--minimal {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
}

.footer-minimal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-minimal-links .footer-link {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-minimal-links .footer-link:hover {
    color: #ffffff;
}

.footer-minimal-links .footer-link {
    font-size: 0.74rem !important;
}

.footer-bottom--minimal {
    border-top: none;
    margin-top: 6px;
    padding-top: 0;
}

.footer-meta {
    color: #94a3b8;
    font-size: 0.72rem;
}

/* Reduce oversized profile hero from inline styles */
.profile-header {
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.2rem !important;
}

.profile-avatar {
    width: 84px !important;
    height: 84px !important;
    font-size: 2rem !important;
    margin-bottom: 0.9rem !important;
}

.profile-name {
    font-size: 1.8rem !important;
}

.profile-stats {
    gap: 1rem !important;
}

/* Public homepage */
.home-shell {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 210px);
}

.home-shell > .home-hero-card {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1rem !important;
}

.home-heading h1 {
    margin-bottom: 0.35rem;
    font-size: 2.45rem;
    line-height: 1.2;
}

.home-subtitle {
    margin-bottom: 0.85rem;
    color: #4b5563;
    font-size: 1.14rem;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}

.home-copy {
    max-width: 72ch;
    font-size: 1.02rem;
    line-height: 1.55;
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-stats-section {
    padding-top: 0.8rem !important;
}

.home-stats-title {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-stats-section .stat-card {
    background: #ffffff;
    border: 1px solid #dbe3ee !important;
    border-radius: 8px !important;
    padding: 0.85rem 0.9rem;
}

.home-stats-section .stat-label {
    margin-bottom: 0.35rem;
    color: #6b7280;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-stats-section .stat-value {
    margin-bottom: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
}

/* Global baseline overrides moved from template inline styles */
.nav-link::after,
.nav-link:hover::after,
.nav-link.active::after {
    display: none !important;
    content: none !important;
}

.vehicle-card,
.vehicle-card:hover,
.card.vehicle-card,
.card.vehicle-card:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: box-shadow 0.2s ease;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
}

.vehicle-card:hover .vehicle-image img,
.card.vehicle-card:hover .vehicle-image img {
    transform: none !important;
    filter: none !important;
}

.vehicle-card:hover .vehicle-quick-view,
.card.vehicle-card:hover .vehicle-quick-view {
    opacity: 0 !important;
    visibility: hidden !important;
}

.toast-container-high {
    z-index: 9999;
}

/* Reports pages */
.report-page-shell {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.report-header {
    padding: 1rem 0 1.5rem;
}

.report-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.report-header .subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.kpi-card .kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-card .kpi-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.signal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

.signal-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.signal-card .table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.signal-card .table th {
    color: #64748b;
    font-weight: 600;
    border-top: none;
}

.signal-card .table td {
    vertical-align: middle;
}

.mover-stat {
    text-align: center;
    padding: 0.75rem;
}

.mover-stat .mover-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.mover-stat .mover-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
}

.cta-section h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.badge-up {
    background: #dcfce7;
    color: #166534;
}

.badge-down {
    background: #fef2f2;
    color: #991b1b;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

.report-link-small {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.daily-report-shell {
    padding-bottom: 40px !important;
}

.daily-report-subtitle {
    color: #666;
}

.daily-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.daily-kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.daily-kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
}

.daily-kpi-value-up {
    color: #16a34a;
}

.daily-kpi-value-down {
    color: #dc2626;
}

.daily-kpi-value-accent {
    color: #2563eb;
}

.daily-kpi-label {
    font-size: 0.85rem;
    color: #666;
}

.daily-panel {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.daily-panel-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.daily-table-wrap {
    overflow-x: auto;
}

.daily-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.daily-table thead tr {
    border-bottom: 2px solid #e5e7eb;
}

.daily-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.daily-table th,
.daily-table td {
    padding: 8px;
}

.daily-table th {
    text-align: left;
}

.daily-table-negative {
    color: #dc2626;
    font-weight: 600;
}

.daily-report-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 32px;
    font-size: 0.9rem;
}

.daily-no-data-shell {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}

.daily-no-data-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.daily-no-data-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.daily-no-data-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.daily-no-data-copy {
    color: #666;
}

.daily-no-data-link {
    display: inline-block;
    margin-top: 20px;
}

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 58px;
    }

    html {
        font-size: 13px;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-collapse {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 2px;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.55rem 0.65rem !important;
        margin: 0 !important;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin-top: 4px;
        border: 1px solid #e5e7eb;
        box-shadow: none;
        padding: 6px;
    }

    .navbar-collapse .dropdown-menu {
        display: none;
    }

    .navbar-collapse .dropdown-menu.show {
        display: block;
    }

    .nav-account {
        margin-left: 0 !important;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
        width: 100%;
    }

    .nav-account .dropdown {
        width: 100%;
    }

    .nav-account .nav-account-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.55rem 0.65rem !important;
    }

    .nav-account .nav-account-link.dropdown-toggle::after {
        margin-left: auto;
    }

    .nav-account .dropdown-menu-end {
        right: auto !important;
    }

    .nav-login-link {
        display: inline-block;
        margin-right: 10px !important;
    }

    .nav-signup-link {
        display: inline-block;
    }

    .home-shell {
        padding-top: 0.8rem;
        padding-bottom: 1.4rem;
        min-height: auto;
    }

    .home-hero-card {
        padding: 0.95rem 0.85rem 0.85rem !important;
        border-radius: 10px;
    }

    .home-heading h1 {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 0.45rem;
    }

    .home-subtitle {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 0.6rem;
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
    }

    .home-copy {
        font-size: 0.96rem;
        line-height: 1.5;
        max-width: 35ch;
    }

    .home-cta-row {
        justify-content: center;
    }

    .home-cta-row .btn {
        min-width: 0;
        width: 100%;
        max-width: 260px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stats-section .stat-card {
        padding: 0.7rem 0.75rem;
    }

    .home-stats-section .stat-value {
        font-size: 1.2rem;
    }

    .daily-report-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .cta-section {
        padding: 1.5rem;
    }

    /* Weekly reports list/detail mobile polish */
    .report-page-shell {
        padding-top: 0.85rem;
        padding-bottom: 1.5rem;
    }

    .report-header {
        padding: 0.45rem 0 0.95rem;
    }

    .report-header h1 {
        font-size: 1.95rem;
        line-height: 1.1;
    }

    .report-header .subtitle {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .report-page-shell .card .card-body {
        padding: 0.8rem;
    }

    .report-page-shell .h3 {
        font-size: 1.75rem;
    }

    .report-page-shell .h6 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .report-page-shell .btn-sm {
        padding: 0.45rem 0.72rem;
    }

    .kpi-card {
        padding: 0.85rem;
    }

    .kpi-card .kpi-value {
        font-size: 1.9rem;
    }

    .kpi-card .kpi-label {
        font-size: 0.72rem;
    }

    .signal-card {
        padding: 0.85rem;
    }

    .signal-card h3 {
        font-size: 1.3rem;
    }

    .signal-card .table {
        font-size: 0.84rem;
    }

    .mover-stat .mover-value {
        font-size: 1.6rem;
    }

    /* About page currently uses inline styles; override for mobile readability */
    main > section[style*="padding: 120px 0 40px"] {
        padding: 76px 0 22px !important;
    }

    main > section[style*="padding: 120px 0 40px"] h1[style*="font-size: 2.25rem"] {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.1;
    }

    main > section[style*="padding: 120px 0 40px"] h2[style*="font-size: 1.5rem"] {
        font-size: 1.45rem !important;
        margin-top: 1.65rem !important;
        margin-bottom: 0.7rem !important;
        line-height: 1.2;
    }

    main > section[style*="padding: 120px 0 40px"] div[style*="font-size: 1.05rem"] {
        font-size: 1rem !important;
        line-height: 1.62 !important;
    }
}
