/* ============================================
   Helvoirt Automotive CRM - Stijlen
   Kleuren: #DAB20D (geel), #000 (zwart), #FFF (wit)
   ============================================ */

:root {
    --geel: #DAB20D;
    --geel-licht: #F5D547;
    --geel-donker: #B89709;
    --zwart: #000000;
    --zwart-licht: #1a1a1a;
    --grijs-donker: #2a2a2a;
    --grijs: #666666;
    --grijs-licht: #e5e5e5;
    --grijs-zeer-licht: #f7f7f7;
    --wit: #FFFFFF;
    --rood: #dc2626;
    --groen: #16a34a;
    --blauw: #2563eb;
    --schaduw: 0 2px 8px rgba(0,0,0,0.08);
    --schaduw-groot: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--grijs-zeer-licht);
    color: var(--zwart);
    font-size: 14px;
    line-height: 1.5;
}

/* ============= Layout ============= */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--zwart);
    color: var(--wit);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.content {
    padding: 32px 40px;
    max-width: 1600px;
    width: 100%;
}

/* ============= Logo ============= */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--grijs-donker);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--geel);
    color: var(--zwart);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -1px;
}

.logo-tekst {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-tekst strong {
    font-size: 15px;
    font-weight: 700;
}

.logo-tekst span {
    font-size: 12px;
    color: var(--geel);
    letter-spacing: 0.5px;
}

/* ============= Menu ============= */
.menu {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #d4d4d4;
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 2px;
    font-size: 14px;
    transition: all 0.15s;
}

.menu a:hover {
    background: var(--grijs-donker);
    color: var(--wit);
}

.menu a.actief {
    background: var(--geel);
    color: var(--zwart);
    font-weight: 600;
}

.menu .icoon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-scheiding {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grijs);
    padding: 20px 14px 8px;
}

/* ============= Gebruiker in sidebar ============= */
.gebruiker-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--grijs-donker);
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--geel);
    color: var(--zwart);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.gebruiker-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.gebruiker-details strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gebruiker-details .rol {
    font-size: 11px;
    color: var(--geel);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uitlog {
    color: var(--grijs);
    text-decoration: none;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: all 0.15s;
}

.uitlog:hover {
    background: var(--grijs-donker);
    color: var(--geel);
}

/* ============= Pagina kop ============= */
.pagina-kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--zwart);
}

.pagina-kop h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pagina-kop .ondertitel {
    color: var(--grijs);
    font-size: 14px;
    margin-top: 4px;
}

/* ============= Kaarten ============= */
.kaart {
    background: var(--wit);
    border-radius: var(--radius);
    box-shadow: var(--schaduw);
    padding: 24px;
    margin-bottom: 20px;
}

.kaart-kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grijs-licht);
}

.kaart-kop h2 {
    font-size: 16px;
    font-weight: 700;
}

/* ============= Statistieken ============= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-kaart {
    background: var(--wit);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--schaduw);
    border-left: 4px solid var(--geel);
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-kaart:hover {
    transform: translateY(-2px);
    box-shadow: var(--schaduw-groot);
}

.stat-kaart.zwart {
    background: var(--zwart);
    color: var(--wit);
    border-left-color: var(--geel);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--grijs);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-kaart.zwart .stat-label {
    color: var(--geel);
}

.stat-waarde {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stat-extra {
    font-size: 12px;
    color: var(--grijs);
    margin-top: 6px;
}

.stat-kaart.zwart .stat-extra {
    color: #aaa;
}

/* ============= Knoppen ============= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-primair {
    background: var(--geel);
    color: var(--zwart);
}

.btn-primair:hover {
    background: var(--geel-donker);
}

.btn-zwart {
    background: var(--zwart);
    color: var(--wit);
}

.btn-zwart:hover {
    background: var(--grijs-donker);
}

.btn-wit {
    background: var(--wit);
    color: var(--zwart);
    border: 1px solid var(--grijs-licht);
}

.btn-wit:hover {
    border-color: var(--zwart);
}

.btn-klein {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============= Tabellen ============= */
.tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tabel th {
    text-align: left;
    padding: 12px 16px;
    background: var(--grijs-zeer-licht);
    font-weight: 600;
    color: var(--grijs);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--grijs-licht);
}

.tabel td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--grijs-licht);
}

.tabel tr:hover td {
    background: var(--grijs-zeer-licht);
}

/* ============= Badges ============= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-geel { background: var(--geel); color: var(--zwart); }
.badge-zwart { background: var(--zwart); color: var(--wit); }
.badge-groen { background: #dcfce7; color: var(--groen); }
.badge-rood { background: #fee2e2; color: var(--rood); }
.badge-blauw { background: #dbeafe; color: var(--blauw); }
.badge-grijs { background: var(--grijs-licht); color: var(--grijs); }

/* ============= Twee-koloms layout ============= */
.twee-kolommen {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ============= Flash berichten ============= */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.flash-success { background: #dcfce7; color: var(--groen); border-left: 4px solid var(--groen); }
.flash-error { background: #fee2e2; color: var(--rood); border-left: 4px solid var(--rood); }
.flash-info { background: #dbeafe; color: var(--blauw); border-left: 4px solid var(--blauw); }

/* ============= Login pagina ============= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zwart);
    background-image: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.login-box {
    background: var(--wit);
    padding: 40px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box .logo {
    justify-content: center;
    border: none;
    padding: 0 0 24px 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--geel);
}

.login-box .logo-tekst strong { color: var(--zwart); }

.form-groep {
    margin-bottom: 16px;
}

.form-groep label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--grijs);
}

.form-groep input,
.form-groep select,
.form-groep textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--grijs-licht);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus {
    outline: none;
    border-color: var(--geel);
    box-shadow: 0 0 0 3px rgba(218, 178, 13, 0.15);
}

.btn-groot {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    justify-content: center;
}

/* ============= Lege staat ============= */
.leeg {
    text-align: center;
    padding: 40px 20px;
    color: var(--grijs);
}

.leeg .icoon-groot {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============= Responsive ============= */
@media (max-width: 900px) {
    .app {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        height: auto;
    }
    .content {
        padding: 20px;
    }
    .twee-kolommen {
        grid-template-columns: 1fr;
    }
}
