/* ═══════════════════════════════════════════════════════
   VlugAuto – Custom CSS
   ═══════════════════════════════════════════════════════ */

/* ── Kleuren & variabelen ───────────────────────────── */
:root {
    --av-blue:       #1565c0;
    --av-blue-dark:  #0d47a1;
    --av-orange:     #f57c00;
    --av-bg:         #f4f6fa;
    --av-card-bg:    #ffffff;
    --av-shadow:     0 2px 8px rgba(0,0,0,.09);
    --av-radius:     .6rem;
    --bottom-nav-h:  60px;
}

/* ── Algemeen ────────────────────────────────────────── */
body {
    background: var(--av-bg);
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}

/* Extra ruimte onderaan zodat fixed bottom-nav niets overdekt */
main {
    padding-bottom: calc(var(--bottom-nav-h) + 1rem) !important;
}

/* ── Topnav ─────────────────────────────────────────── */
#mainNav {
    background: var(--av-blue) !important;
}

#offcanvasHeader {
    background: var(--av-blue);
}

/* ── Bottom nav (mobiel) ────────────────────────────── */
#bottomNav {
    height: var(--bottom-nav-h);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-size: .68rem;
    padding: .35rem .8rem;
    line-height: 1.2;
    transition: color .15s;
}

.bottom-nav-item i {
    font-size: 1.35rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--av-blue);
}

.bottom-nav-add {
    color: var(--av-blue);
    font-weight: 600;
}

/* ── Kaarten ─────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--av-radius);
    box-shadow: var(--av-shadow);
}

.card-header {
    border-radius: var(--av-radius) var(--av-radius) 0 0 !important;
    font-weight: 600;
}

/* ── Knoppen – grotere touch targets ────────────────── */
.btn {
    border-radius: .45rem;
    padding: .55rem 1.1rem;
    font-size: .95rem;
}

.btn-lg {
    padding: .75rem 1.4rem;
    font-size: 1.05rem;
}

/* ── Formulieren ─────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: .45rem;
    font-size: 1rem;
    padding: .6rem .85rem;
    border-color: #ccd3de;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--av-blue);
    box-shadow: 0 0 0 .2rem rgba(21,101,192,.2);
}

.form-label {
    font-weight: 500;
    margin-bottom: .3rem;
}

/* ── Tabel ───────────────────────────────────────────── */
.table {
    font-size: .92rem;
}

.table th {
    font-weight: 600;
    background: #f0f3f8;
}

/* ── Foto-grid ───────────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
}

.photo-thumb {
    width:  100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: .4rem;
    cursor: pointer;
    transition: opacity .15s;
    border: 2px solid transparent;
}

.photo-thumb:hover {
    opacity: .85;
    border-color: var(--av-blue);
}

/* ── Stat-kaarten op het dashboard ─────────────────── */
.stat-card {
    text-align: center;
    padding: 1.1rem .8rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--av-blue);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: #666;
    margin-top: .2rem;
}

/* ── Voertuig badge ──────────────────────────────────── */
.vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #e8edf7;
    border-radius: 2rem;
    padding: .25rem .75rem;
    font-size: .85rem;
    color: var(--av-blue-dark);
    font-weight: 500;
}

/* ── Tijdlijn voor onderhoudshistorie ───────────────── */
.timeline {
    position: relative;
    padding-left: 1.6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4dbe8;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: .45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--av-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--av-blue);
}

/* ── Afspraken badge ─────────────────────────────────── */
.appointment-soon {
    background: #fff3e0;
    border-left: 4px solid var(--av-orange);
}

/* ── Pagina-titel ────────────────────────────────────── */
.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2743;
    margin-bottom: .1rem;
}

/* ── Alert aanpassingen ──────────────────────────────── */
.alert {
    border-radius: var(--av-radius);
    border: none;
}

/* ── Zoekveld ────────────────────────────────────────── */
.search-wrapper {
    position: relative;
}

.search-wrapper .bi {
    position: absolute;
    top: 50%;
    left: .85rem;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.search-wrapper input {
    padding-left: 2.4rem;
}

/* ── Print (onderhoudsrapport) ───────────────────────── */
@media print {
    #mainNav,
    #sideMenu,
    #bottomNav,
    .btn,
    .no-print {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
