* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #00698b;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo img {
    max-height: 40px;
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
}

nav {
    background: #00698b;
    display: none;
    flex-direction: column;
}

    nav a {
        padding: 1rem;
        color: #fff;
        text-decoration: none;
        transition: background .2s;
    }

        nav a:hover {
            background: #007ea5;
        }

    nav.active {
        display: flex;
    }

main {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: #fff;
    color: #000;
    width: 100%;
    max-width: 560px;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
}

    .card.wide {
        max-width: 960px;
    }

.chart-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}

    .settings-form label {
        font-weight: 600;
        margin-top: .25rem;
    }

    .settings-form input,
    .settings-form select {
        padding: .65rem .75rem;
        font-size: 1rem;
        border: 1px solid #cfd8dc;
        border-radius: 8px;
    }

        .settings-form input:focus,
        .settings-form select:focus {
            outline: 2px solid #00698b;
            border-color: #00698b;
        }

    .btn, .settings-form button {
        margin-top: 1rem;
        padding: .7rem 1rem;
        font-size: 1rem;
        cursor: pointer;
        border: none;
        border-radius: 8px;
        background: #00698b;
        color: #fff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background .2s;
    }

        .btn:hover, .settings-form button:hover {
            background: #007ea5;
        }

        .btn.dark {
            background: #081534;
        }

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

    .alert.success {
        background: #d4edda;
        color: #155724;
    }

    .alert.error {
        background: #f8d7da;
        color: #721c24;
    }

    .alert.info {
        background: #d1ecf1;
        color: #0c5460;
    }

/* Zoutniveau-balk */
.vertical-chart {
    flex: 1;
    width: 70px;
    margin: 0 auto;
    background: #e0e0e0;
    border-radius: 14px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 220px;
}

.vertical-bar {
    width: 100%;
    height: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    transition: height .5s ease, background-color .3s ease;
}

/* Horizontale klantbalk */
.horizontal-chart {
    width: 100%;
    height: 26px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.horizontal-bar {
    height: 100%;
    color: #fff;
    text-align: right;
    padding-right: 10px;
    line-height: 26px;
    font-weight: bold;
    transition: width .5s;
}

.client {
    margin-bottom: 1.25rem;
}

.client-name {
    font-weight: bold;
    margin-bottom: .4rem;
    cursor: pointer;
    color: #00698b;
}

/* Batch / laadbalk */
.progress-wrap {
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    height: 22px;
    margin: .5rem 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #00698b;
    transition: width .3s;
}

.batch-log {
    background: #0e1116;
    color: #d5f5e3;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .8rem;
    padding: .75rem;
    border-radius: 8px;
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.batch-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: .75rem 0;
}

.batch-stat {
    background: #f1f5f9;
    padding: .6rem .9rem;
    border-radius: 8px;
    font-weight: 600;
}

@media (min-width: 768px) {
    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .menu-toggle {
        display: none;
    }

    nav a {
        padding: 1rem 1.5rem;
    }

    .logo img {
        max-height: 50px;
    }
}