:root {
    --gd-primary: #0f172a;
    --gd-secondary: #1e293b;
    --gd-accent: #0ea5e9;
    --gd-bg: #f8fafc;
}

body {
    background: var(--gd-bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, var(--gd-primary), var(--gd-secondary));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.brand img {
    max-height: 80px;
    max-width: 100%;
    height: auto;
}

.sidebar .brand {
    text-align: center;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.8);
    border-radius: .8rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.content-area {
    padding: 2rem;
    min-width: 0;
}

.card-soft {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.stats-card {
    color: #fff;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15,23,42,.15);
}

.stats-card .icon {
    font-size: 1.6rem;
    opacity: .85;
}

.bg-gd-1 { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.bg-gd-2 { background: linear-gradient(135deg, #059669, #34d399); }
.bg-gd-3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.bg-gd-4 { background: linear-gradient(135deg, #ea580c, #fb923c); }

.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #38bdf8, #0f172a 55%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 1rem;
}

.badge-soft {
    background: #e0f2fe;
    color: #0369a1;
}

.mobile-topbar {
    display: none;
}

.offcanvas .nav-link {
    color: #0f172a;
    border-radius: .75rem;
    padding: .75rem 1rem;
}

.offcanvas .nav-link.active,
.offcanvas .nav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Algemene hulpkleuren/layout */
.page-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.page-actions .btn {
    white-space: nowrap;
}

.card-soft .card-header {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: .45rem;
}

.form-control,
.form-select,
.btn {
    border-radius: .8rem;
}

.btn {
    min-height: 42px;
}

.list-group-item {
    background: transparent;
}

/* Tablet en kleiner */
@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .content-area {
        padding: 1rem;
    }

    .mobile-topbar {
        display: block;
    }

    .card-soft {
        border-radius: .9rem;
    }

    .stats-card .display-6 {
        font-size: 2rem;
    }
}

/* Mobiele telefoons */
@media (max-width: 767.98px) {
    body {
        font-size: .95rem;
    }

    .content-area {
        padding: .875rem;
    }

    .card-soft {
        border-radius: .85rem;
        box-shadow: 0 8px 22px rgba(15,23,42,.06);
    }

    .card-soft .card-body,
    .card-soft .card-header {
        padding: 1rem;
    }

    h1.h3,
    .h3 {
        font-size: 1.35rem;
    }

    h2.h5,
    .h5 {
        font-size: 1rem;
    }

    .stats-card .display-6 {
        font-size: 1.65rem;
    }

    .stats-card .icon {
        font-size: 1.3rem;
    }

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

    .table thead th {
        font-size: .75rem;
    }

    .table td,
    .table th {
        padding: .7rem .6rem;
        white-space: nowrap;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 38px;
        padding-inline: .7rem;
    }

    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions .btn {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        gap: .75rem;
        align-items: flex-start !important;
        flex-direction: column;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child,
    .d-flex.justify-content-between.align-items-center.mb-4 > a,
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
    }

    .form-check {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .badge {
        font-size: .72rem;
    }

    .mobile-stack {
        display: flex;
        flex-direction: column;
        gap: .35rem;
    }

    .mobile-scroll-hint {
        font-size: .8rem;
        color: #64748b;
        margin-top: .5rem;
    }
}

/* Extra kleine schermen */
@media (max-width: 575.98px) {
    .content-area {
        padding: .75rem;
    }

    .card-soft .card-body,
    .card-soft .card-header {
        padding: .85rem;
    }

    .stats-card .display-6 {
        font-size: 1.45rem;
    }

    .brand img {
        max-height: 64px;
    }
}