body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
    color: #333;
}

header {
    background: #004080;
    color: #fff;
    padding: 15px;
}

header h1 {
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    padding: 10px;
}
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    color: #004080;
}

.login-container label {
    display: block;
    margin-top: 10px;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background: #0059b3;
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo {
    width: 90px;
    height: auto;
    margin-bottom: 0.5rem;
}

.login-footer {
    text-align: center;
    font-size: 0.85em;
    color: #777;
    margin-top: 1rem;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 800px;
}

.dashboard-module {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #004b99;
}

.dashboard-module h2 {
    margin-top: 0;
    color: #004b99;
}

.dashboard-module p {
    margin: 0.4rem 0 1rem;
}

.dashboard-module a.btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #004b99;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: 0.2s;
}

.dashboard-module a.btn-small:hover {
    background-color: #003366;
}

.dashboard-module.admin {
    border-left-color: #006600;
}

/* Optioneel: responsive layout */
@media (min-width: 900px) {
    .dashboard-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}


.error {
    background: #ffe0e0;
    color: #a00;
    padding: 10px;
    border-radius: 4px;
}


.admin-box {
    background: #e6f0ff;
    border-left: 4px solid #004080;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

table th {
    background: #004080;
    color: white;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

.button {
    background: #004080;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.button:hover {
    background: #0059b3;
}

.info {
    background: #e0f0ff;
    color: #004080;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.message {
    margin: 0 auto;
    padding: 12px 20px;
    max-width: 900px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in;
}

.message.success {
    background: #e0ffe0;
    border: 1px solid #2b7a2b;
    color: #2b7a2b;
}

.message.error {
    background: #ffe0e0;
    border: 1px solid #a00;
    color: #a00;
}

.message.info {
    background: #e0f0ff;
    border: 1px solid #004080;
    color: #004080;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
    background: #f8faff;
    border-left: 4px solid #004080;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    color: #004080;
    margin-bottom: 8px;
}

.dashboard-links {
    list-style: none;
    padding-left: 0;
}

.dashboard-links li {
    margin: 5px 0;
}

.dashboard-links a {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
}

.dashboard-links a:hover {
    text-decoration: underline;
}

.nav-divider {
    color: #ccc;
    margin: 0 8px;
}

.dashboard-section h3::before {
    content: "• ";
    color: #004080;
}

.form-container {
    max-width: 900px;
    margin: 20px auto;
    background: #f9f9fb;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.btn-primary {
    background: #004080;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0055aa;
}

.btn-secondary {
    background: #ccc;
    color: #222;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #bbb;
}

.single-column {
    max-width: 800px;
    margin: 20px auto;
    background: #f9f9fb;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group small {
    display: block;
    color: #555;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-group label {
    font-weight: 600;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}


.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

/* Linkerkant (formulier) */
.column.left {
    flex: 2;
    min-width: 400px;
}

/* Rechterkant (overzicht) */
.column.right {
    flex: 1;
    min-width: 300px;
    background: #f9fbff;
    border: 1px solid #d7e3f3;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    max-height: 80vh;
    overflow-y: auto;
}

/* Tabel styling */
.fields-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fields-table th {
    background-color: #004080;
    color: white;
    text-align: left;
    padding: 8px;
}

.fields-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #dcdcdc;
}

.fields-table tr:hover td {
    background-color: #eef5ff;
}

.fields-table tr.inactive td {
    color: #999;
    background-color: #f5f5f5;
}


/* =========================
   NAVIGATIE & HEADER STYLING
========================= */

header {
    background-color: #003d80;
    color: white;
    padding: 0.6rem 1rem;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
}

.user-info {
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* ===== NAV LINKS ===== */
nav {
    margin-top: 6px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    display: block;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== DROPDOWN ===== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004b99;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #0060c0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.hamburger span {
    background-color: white;
    position: absolute;
    height: 3px;
    width: 100%;
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* ===== RESPONSIVE MENU ===== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: #004b99;
        border-top: 1px solid rgba(255,255,255,0.2);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    .nav-links.show {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
    }

    .dropdown-content a {
        padding-left: 1.5rem;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }
}
/* === TABEL LAYOUT VOOR KLANTEN === */
.table-styled {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table-styled th {
    background: #004080;
    color: white;
    padding: 10px;
    text-align: left;
}

.table-styled td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

.table-styled tr:hover td {
    background: #f1f6ff;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: white;
    text-align: center;
    min-width: 30px;
}
.badge-blue { background: #007bff; }
.badge-green { background: #28a745; }
.badge-success { background: #28a745; }
.badge-gray { background: #6c757d; }

/* === ACTIEKNOPPEN === */
.btn-action {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    text-decoration: none;
    color: white;
    margin-right: 5px;
    transition: background 0.2s ease;
}

.btn-action.edit {
    background: #198754;
}

.btn-action.delete {
    background: #dc3545;
}

.btn-action:hover {
    opacity: 0.85;
}
.customer-card {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #004080;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.customer-header h2 {
    margin: 0;
    color: #004080;
}

.customer-info, .customer-section {
    margin-bottom: 30px;
}

.info-table th {
    width: 200px;
    text-align: left;
    padding-right: 10px;
    color: #004080;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.data-table th {
    background: #004080;
    color: white;
}

.no-data {
    color: #777;
    font-style: italic;
}

.status.active { 
    color: green;
    font-weight: bold;
}
.status.inactive { 
    color: red;
    font-weight: bold;
}
.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-block {
    background: #f9fbff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.info-table th {
    width: 40%;
    text-align: left;
    padding: 6px;
    color: #FFFFFF;
}

.info-table td {
    padding: 6px;
}
.note-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.btn-save {
    align-self: flex-end;
    background-color: #007700;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-save:hover {
    background-color: #005c00;
}
.btn-action {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s ease;
    color: white;
    margin-right: 4px;
}

/* ?? Deactiveren */
.btn-action.deactivate {
    background-color: #1a73e8;
}
.btn-action.deactivate:hover {
    background-color: #155fc0;
}

/* ?? Activeren */
.btn-action.activate {
    background-color: #2e7d32;
}
.btn-action.activate:hover {
    background-color: #256427;
}

/* ?? Verwijderen */
.btn-action.delete {
    background-color: #d93025;
}
.btn-action.delete:hover {
    background-color: #b22a1e;
}
.badge-blue { background: #007bff; color: white; padding: 3px 8px; border-radius: 4px; }
.badge-green { background: #28a745; color: white; padding: 3px 8px; border-radius: 4px; }
.badge-gray { background: #6c757d; color: white; padding: 3px 8px; border-radius: 4px; }

.btn-action {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 4px;
    font-size: 0.9em;
}

.btn-action.view { background: #17a2b8; color: white; }
.btn-action.edit { background: #ffc107; color: black; }
.btn-action.delete { background: #dc3545; color: white; }
.btn-action:hover { opacity: 0.85; }

.link-id {
    color: #004b99;
    text-decoration: none;
    font-weight: 500;
}

.link-id:hover {
    text-decoration: underline;
}

.badge-blue {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.badge-gray {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

