/* =========================================
   PlaagPatrouille Beheer
   Huisstijl
   Groen: #29EE22
   Bruin: #57391C
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7f2;
    color: #2b2b2b;
}

/* BOVENBALK */

header {
    background: #57391C;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    border-bottom: 4px solid #29EE22;
}

/* LOGO / BEDRIJFSNAAM */

.brand {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.brand span {
    color: #29EE22;
}

/* NAVIGATIE */

nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 7px;
    transition: background .2s ease, color .2s ease;
}

nav a:hover {
    background: #29EE22;
    color: #57391C;
}

/* HOOFDINHOUD */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
}

.page-head {
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0;
    color: #57391C;
}

/* DASHBOARD KAARTEN */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card,
.panel,
.login-card {
    background: #fff;
    border: 1px solid #dde5da;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(87, 57, 28, .08);
}

.card {
    border-top: 4px solid #29EE22;
}

.metric {
    font-size: 34px;
    font-weight: 800;
    color: #57391C;
}

.panel {
    margin-bottom: 20px;
}

.panel h2,
.panel h3 {
    color: #57391C;
}

/* FORMULIEREN */

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

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #57391C;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5c8;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: #2b2b2b;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #29EE22;
    box-shadow: 0 0 0 3px rgba(41, 238, 34, .18);
}

/* KNOPPEN */

.btn {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #cbd5c8;
    border-radius: 8px;
    background: #fff;
    color: #57391C;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s ease;
}

.btn:hover {
    border-color: #57391C;
    background: #f4f7f2;
}

.btn.primary {
    background: #29EE22;
    color: #173313;
    border-color: #29EE22;
}

.btn.primary:hover {
    background: #57391C;
    color: #fff;
    border-color: #57391C;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* HULPTEKST */

.muted,
small {
    color: #6b7468;
}

/* TABELLEN */

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 11px;
    border-bottom: 1px solid #e2e8df;
}

th {
    color: #57391C;
    background: #f4f7f2;
}

tbody tr:hover {
    background: #f6fff5;
}

/* MELDINGEN */

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #29EE22;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            #57391C 0%,
            #3d2814 100%
        );
}

.login-card {
    width: min(430px, 100%);
    border-top: 5px solid #29EE22;
}

.login-card form {
    display: grid;
    gap: 14px;
}

.login-card h1 {
    color: #57391C;
}

/* MOBIEL */

@media (max-width: 700px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    nav {
        width: 100%;
    }

    nav a {
        padding: 8px;
    }

    main {
        padding: 20px 14px;
    }
}