:root {
    --bg: #f4f7f5;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --text: #14231b;
    --muted: #66756c;
    --line: #e3e9e5;
    --primary: #1f8a4c;
    --primary-dark: #16663a;
    --primary-soft: #ecf8f0;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --warning-bg: #fff7e8;
    --warning-border: #f4d38a;
    --warning-text: #8a5a00;
    --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
    --sidebar-width: 290px;

    --sidebar-bg-top: #0c2218;
    --sidebar-bg-mid: #103326;
    --sidebar-bg-bottom: #0f3f2f;
    --sidebar-glass: rgba(255, 255, 255, 0.06);
    --sidebar-glass-strong: rgba(255, 255, 255, 0.10);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text-soft: rgba(255, 255, 255, 0.72);
    --sidebar-text-muted: rgba(255, 255, 255, 0.56);
    --sidebar-active-glow: 0 14px 28px rgba(31, 138, 76, 0.28);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 138, 76, 0.06), transparent 30%),
        radial-gradient(circle at bottom right, rgba(244, 227, 92, 0.10), transparent 28%),
        var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top left, rgba(95, 201, 137, 0.10), transparent 24%),
        radial-gradient(circle at bottom center, rgba(244, 227, 92, 0.08), transparent 26%),
        linear-gradient(180deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-mid) 48%, var(--sidebar-bg-bottom) 100%);
    color: #ffffff;
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 12px 0 34px rgba(5, 16, 12, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-brand {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.045) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 16px 16px 15px 16px;
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.sidebar-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
    pointer-events: none;
}

.logo {
    width: 100%;
    max-width: 215px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-meta strong {
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
}

.brand-meta span {
    font-size: 13px;
    color: var(--sidebar-text-soft);
    letter-spacing: 0.2px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 22px;
    padding: 13px 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 22px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dff5e6 0%, #8fd4a5 100%);
color: #0f2218;
    color: #0f2218;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-meta strong {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta span {
    font-size: 12px;
    color: var(--sidebar-text-soft);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav > a,
.sidebar-subnav a {
    position: relative;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    color: #f7fbf8;
    font-weight: 600;
    letter-spacing: 0.2px;
    text shadow: 0 1px 1px rgba(0,0,0,0.2);
    transition: all 0.24s ease;
    border: 1px solid rgba(255, 255, 255, 0.055);
    display: block;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 6px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.sidebar-nav > a:hover,
.sidebar-subnav a:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 22px rgba(0, 0, 0, 0.10);
}

.sidebar-nav > a.active,
.sidebar-subnav a.active {
    background:
        linear-gradient(135deg, #29aa58 0%, #17743e 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 16px 28px rgba(31, 138, 76, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.16);
    transform: translateX(0);
    font-weight: 700;
    letter-spacing: 0.3px;
    /* minder blur effect */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sidebar-nav > a.active::before,
.sidebar-subnav a.active::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #effcf3;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(255,255,255,0.55);
}

.sidebar-nav > a.active,
.sidebar-subnav a.active {
    padding-left: 28px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-section > span {
    font-size: 11px;
    font-weight: 800;
    color: var(--sidebar-text-muted);
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-subnav a {
    font-size: 14px;
    padding: 12px 14px;
}

.sidebar-collapsible {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-toggle {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 15px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    color: #f8fcf9;
    font-weight: 600;
    letter-spacing: 0.2px;
    /*scherpere rendering */
    text-shadow: 0 1px 1px rgba(0.0.0.0.25);
    font-size: 15px;
    transition: all 0.24s ease;
    border: 1px solid rgba(255, 255, 255, 0.055);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 6px 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

.sidebar-toggle:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 22px rgba(0,0,0,0.10);
}

.sidebar-collapsible.open .sidebar-toggle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.09);
}

.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    transition: transform 0.22s ease, background 0.22s ease;
    flex-shrink: 0;
}

.sidebar-collapsible.open .sidebar-toggle-icon {
    transform: rotate(180deg);
    background: rgba(255,255,255,0.12);
}

.sidebar-collapsible .sidebar-subnav {
    display: none;
    gap: 8px;
    padding: 4px 0 2px 10px;
    margin-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-collapsible.open .sidebar-subnav {
    display: flex;
    flex-direction: column;
}

.sidebar-collapsible .sidebar-subnav a {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
    color: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.sidebar-collapsible .sidebar-subnav a:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
}

.sidebar-collapsible .sidebar-subnav a.active {
    background:
        linear-gradient(135deg, #29aa58 0%, #17743e 100%);
    box-shadow:
        0 12px 22px rgba(31, 138, 76, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.active-event-box {
    margin-top: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.11);
    padding: 18px;
    border-radius: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 16px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

.active-event-box span {
    display: block;
    font-size: 11px;
    color: var(--sidebar-text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.active-event-box strong {
    display: block;
    font-size: 23px;
    margin-bottom: 8px;
    line-height: 1.15;
    color: #ffffff;

    /* minder "blob" effect */
    font-weight: 700;

    /* scherpere rendering */
    letter-spacing: 0.2px;

    /* optisch scherper op donkere achtergrond */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.active-event-box small {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.5;
}

.active-event-box small {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    margin-top: 3px;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 28px;
}

.topbar {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.topbar-title {
    margin: 0 0 6px 0;
    font-size: 34px;
    line-height: 1.1;
}

.topbar-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 35, 27, 0.05);
}

.stat-card span {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 34px;
    color: #173d2d;
    line-height: 1.1;
}

.dashboard-grid,
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.page-actions {
    margin-bottom: 20px;
}

.card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 35, 27, 0.05);
    overflow: hidden;
}

.highlight-card {
    background: linear-gradient(135deg, #1f8a4c 0%, #16663a 100%);
    color: #ffffff;
    border: none;
    box-shadow:
        0 18px 40px rgba(31, 138, 76, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.highlight-card .card-head h2,
.highlight-card .card-body strong,
.highlight-card .active-beurs-info strong,
.highlight-card .active-beurs-count strong {
    color: #ffffff;
}

.highlight-card .card-head p,
.highlight-card .muted-line,
.highlight-card .active-beurs-count span {
    color: rgba(255, 255, 255, 0.82);
}

.card-head {
    padding: 24px 24px 0 24px;
}

.card-head h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    line-height: 1.2;
}

.card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.card-body {
    padding: 24px;
}

.form-container {
    max-width: 860px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: #183326;
}

.form-group input,
.form-group select,
.search-form input {
    width: 100%;
    border: 1px solid #d8e1db;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 16px;
    background: #fff;
    color: var(--text);
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.search-form input:focus {
    outline: none;
    border-color: #8cc9a2;
    box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.10);
}

.quick-form input,
.quick-form select {
    font-size: 20px;
    padding: 18px;
}

.quick-entry-card {
    border: 1px solid rgba(31, 138, 76, 0.12);
}

.active-beurs-label {
    background: linear-gradient(180deg, #effbf3 0%, #e8f8ee 100%);
    border: 1px solid #cdebd8;
    border-radius: 18px;
    padding: 18px 20px;
}

.active-beurs-label span {
    display: block;
    font-size: 12px;
    color: #166534;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.active-beurs-label strong {
    display: block;
    font-size: 24px;
    color: #14532d;
    margin-bottom: 6px;
    line-height: 1.2;
}

.active-beurs-label small {
    display: block;
    color: #166534;
    font-size: 14px;
    margin-top: 4px;
}

.duplicate-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    border-radius: 18px;
    padding: 18px 20px;
}

.duplicate-warning h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.duplicate-warning p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.duplicate-details {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 14px;
    line-height: 1.7;
}

.tablet-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quick-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding-top: 8px;
}

.active-beurs-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.active-beurs-info strong {
    font-size: 28px;
    color: #173d2d;
    line-height: 1.1;
}

.active-beurs-count {
    min-width: 180px;
    text-align: right;
}

.active-beurs-count span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 14px;
}

.active-beurs-count strong {
    font-size: 42px;
    color: var(--primary);
    line-height: 1;
}

.muted-line {
    color: var(--muted);
    margin-top: 6px;
    font-size: 15px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input {
    flex: 1;
    min-width: 260px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #239651 0%, #1b8146 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 138, 76, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #1f8a4c 0%, #176e3d 100%);
}

.btn-secondary {
    background: #eef2ef;
    color: #173326;
    border: 1px solid #dde5df;
}

.btn-secondary:hover {
    background: #e5ebe6;
}

.btn-danger {
    background: linear-gradient(180deg, #e13636 0%, #c62020 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #cf2b2b 0%, #b81d1d 100%);
}

.btn-sm {
    padding: 10px 13px;
    font-size: 13px;
    border-radius: 12px;
}

.btn-large {
    padding: 18px 26px;
    font-size: 20px;
    border-radius: 16px;
}

.btn-xl {
    padding: 22px 30px;
    font-size: 24px;
    border-radius: 18px;
    width: 100%;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    text-align: left;
    background: #f8faf8;
    padding: 16px 14px;
    font-size: 13px;
    color: #4d5f54;
    border-bottom: 1px solid #e5ebe6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table thead th:first-child {
    border-top-left-radius: 14px;
}

.data-table thead th:last-child {
    border-top-right-radius: 14px;
}

.data-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf1ee;
    vertical-align: middle;
    background: #fff;
}

.data-table tbody tr:hover td {
    background: #fbfcfb;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #e9eeea;
    color: #425347;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.overview-card {
    border: 1px solid #e5ebe6;
    border-radius: 18px;
    padding: 18px;
    background: #fbfcfb;
}

.overview-card-active {
    border-color: #b7e3c4;
    background: linear-gradient(180deg, #f1fbf4 0%, #fbfefc 100%);
}

.overview-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.overview-card-top h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.overview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.overview-count {
    margin-bottom: 14px;
}

.overview-count span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.overview-count strong {
    font-size: 30px;
    color: var(--primary);
    line-height: 1;
}

.overview-actions {
    display: flex;
    justify-content: flex-start;
}

.empty-state {
    padding: 18px 8px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    background: #f8faf8;
    border: 1px solid #e5ebe6;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-item strong {
    font-size: 18px;
    line-height: 1.2;
}

.recent-item span {
    color: #173326;
    font-weight: 600;
}

.recent-item small {
    color: var(--muted);
    font-size: 13px;
}

.beursmodus-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.beursmodus-card {
    min-height: 100%;
}

.beursmodus-main .card-body {
    padding: 28px;
}

.beursmodus-label strong {
    font-size: 28px;
}

.beursmodus-form {
    margin-top: 22px;
    gap: 22px;
}

.beursmodus-form .form-group label {
    font-size: 16px;
}

.beursmodus-form .form-group input {
    font-size: 24px;
    padding: 22px 20px;
    border-radius: 18px;
}

.beursmodus-actions {
    margin-top: 6px;
}

.flash-wrapper {
    margin-bottom: 20px;
}

.flash {
    padding: 15px 18px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

code {
    background: #f2f5f3;
    padding: 3px 7px;
    border-radius: 8px;
    color: #1f3d2e;
}

@media (max-width: 1200px) {
    .beursmodus-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .two-column-grid,
    .tablet-entry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .main-content {
        margin-left: 0;
        padding: 18px;
    }

    .topbar {
        padding: 18px;
    }

    .topbar-title {
        font-size: 28px;
    }

    .active-beurs-count {
        text-align: left;
    }

    .btn-large,
    .btn-xl {
        width: 100%;
    }

    .quick-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .beursmodus-form .form-group input {
        font-size: 20px;
        padding: 18px;
    }

    .sidebar-nav > a.active,
    .sidebar-subnav a.active {
        padding-left: 24px;
    }
}

/* ============================================================
   EMAIL MODULE
============================================================ */

.email-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.email-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.email-toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.email-toolbar-right {
    display: flex;
    gap: 10px;
}

.email-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: #eef2ef;
    color: #20452d;
    border: 1px solid #dbe6dd;
    transition: all 0.2s ease;
}

.email-tab:hover {
    background: #e4ece6;
}

.email-tab.active {
    background: linear-gradient(135deg, #16914a, #0d7139);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(18, 134, 69, 0.22);
}

.email-list-card,
.email-detail-card,
.email-compose-card,
.email-groups-card {
    padding: 0;
    overflow: hidden;
}

.email-list {
    display: flex;
    flex-direction: column;
}

.email-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #edf1ed;
    transition: background 0.2s ease;
}

.email-row:last-child {
    border-bottom: none;
}

.email-row:hover {
    background: #f8fbf8;
}

.email-row-main {
    flex: 1;
    min-width: 0;
}

.email-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 8px;
}

.email-subject {
    font-size: 16px;
    font-weight: 700;
    color: #163625;
    line-height: 1.35;
}

.email-date {
    white-space: nowrap;
    font-size: 13px;
    color: #6a7a70;
}

.email-row-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #46604e;
}

.email-from-label {
    font-weight: 700;
}

.email-from-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-snippet {
    font-size: 14px;
    line-height: 1.5;
    color: #68786d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-row-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.email-detail-actions,
.email-groups-header,
.email-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 22px 22px 0 22px;
}

.email-detail-header {
    padding: 18px 22px 0 22px;
}

.email-detail-header h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #163625;
}

.email-detail-meta-grid {
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: #4f6157;
    margin-bottom: 18px;
}

.email-detail-body {
    margin: 22px;
    padding: 20px;
    border: 1px solid #e5ece6;
    background: #f9fbf9;
    border-radius: 16px;
    white-space: pre-wrap;
    line-height: 1.7;
    color: #1f3528;
}

.email-form {
    padding: 22px;
}

.email-form .form-group {
    margin-bottom: 18px;
}

.email-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #193628;
}

.email-form small {
    display: block;
    margin-top: 8px;
    color: #6d7d72;
    font-size: 13px;
}

.email-textarea {
    min-height: 260px;
    resize: vertical;
}

.email-group-list {
    display: flex;
    flex-direction: column;
}

.email-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-top: 1px solid #edf1ed;
}

.email-group-item:first-child {
    border-top: none;
}

.email-group-info h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    color: #163625;
}

.email-group-info p {
    margin: 0;
    color: #68786d;
    font-size: 14px;
}

.email-group-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    padding: 42px 22px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: #173725;
}

.empty-state p {
    margin: 0;
    color: #6b7b70;
}

@media (max-width: 900px) {
    .email-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .email-row-top {
        flex-direction: column;
        gap: 6px;
    }

    .email-date {
        white-space: normal;
    }

    .email-snippet,
    .email-from-value {
        white-space: normal;
    }

    .email-row-action {
        width: 100%;
    }

    .email-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   EMAIL PAGINA - MEER VOLLEDIGE LAYOUT
============================================================ */

.mail-page-full {
    width: 100%;
}

.mail-app-shell-full {
    gap: 0;
}

.mail-layout-full {
    display: grid;
    grid-template-columns: 240px 380px minmax(0, 1fr);
    min-height: calc(100vh - 210px);
    height: calc(100vh - 210px);
    padding: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(20, 35, 27, 0.06);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.mail-sidebar-panel,
.mail-list-panel,
.mail-reader-panel {
    min-width: 0;
    min-height: 0;
}

.mail-sidebar-panel {
    background: linear-gradient(180deg, #f7faf7 0%, #f3f8f4 100%);
    border-right: 1px solid #e8eeea;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mail-sidebar-header {
    display: flex;
    flex-direction: column;
}

.mail-compose-btn {
    width: 100%;
    justify-content: center;
}

.mail-folder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mail-folder-item {
    display: block;
    padding: 13px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    color: #1b3a28;
    background: #eef5f0;
    border: 1px solid #dde8df;
    transition: all 0.2s ease;
}

.mail-folder-item:hover {
    background: #e5efe8;
    transform: translateX(2px);
}

.mail-folder-item.active {
    background: linear-gradient(135deg, #16914a, #0d7139);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(18, 134, 69, 0.22);
}

.mail-list-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8eeea;
    background: #ffffff;
    overflow: hidden;
}

.mail-panel-top {
    padding: 22px 18px 16px 18px;
    border-bottom: 1px solid #edf2ee;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    background: #fcfdfc;
}

.mail-panel-heading h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #183726;
}

.mail-panel-heading p {
    margin: 0;
    color: #6a7a70;
    font-size: 14px;
}

.mail-panel-search input,
.mail-panel-search .form-control {
    width: 100%;
    border: 1px solid #d8e1db;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
}

.mail-panel-search input:focus,
.mail-panel-search .form-control:focus {
    outline: none;
    border-color: #8cc9a2;
    box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.10);
}

.mail-message-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.mail-message-item {
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #edf2ee;
    background: #ffffff;
    padding: 18px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-left 0.2s ease;
    border-left: 4px solid transparent;
    appearance: none;
    font-family: inherit;
}

.mail-message-item:hover {
    background: #f8fbf8;
}

.mail-message-item.active {
    background: #f3faf5;
    border-left: 4px solid #16914a;
}

.mail-message-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mail-message-name {
    font-size: 14px;
    font-weight: 700;
    color: #193628;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-message-date {
    font-size: 12px;
    color: #738278;
    white-space: nowrap;
    flex-shrink: 0;
}

.mail-message-subject {
    font-size: 15px;
    font-weight: 700;
    color: #1e3528;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mail-message-snippet {
    font-size: 13px;
    line-height: 1.5;
    color: #6d7c72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mail-reader-panel {
    background: #fcfdfc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mail-reader-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

.mail-reader-empty-inner {
    text-align: center;
    max-width: 380px;
}

.mail-reader-empty-inner h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #183726;
}

.mail-reader-empty-inner p {
    margin: 0;
    color: #6b7b70;
    line-height: 1.6;
}

.mail-reader-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.mail-reader-header {
    padding: 24px 26px 18px 26px;
    border-bottom: 1px solid #edf2ee;
    flex-shrink: 0;
    background: #ffffff;
}

.mail-reader-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mail-reader-header h2 {
    margin: 0 0 16px 0;
    font-size: 22px;
    line-height: 1.35;
    color: #173625;
}

.mail-reader-meta {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #53645a;
}

.mail-reader-body {
    padding: 26px;
    white-space: pre-wrap;
    line-height: 1.8;
    color: #22372a;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #fcfdfc;
}

.mail-empty-list {
    padding: 40px 22px;
}

.mail-empty-list h3 {
    margin: 0 0 8px 0;
    color: #183726;
}

.mail-empty-list p {
    margin: 0;
    color: #6b7b70;
}

@media (max-width: 1200px) {
    .mail-layout-full {
        grid-template-columns: 220px 320px minmax(0, 1fr);
    }
}

/* ============================================================
   EMAIL MODULE - VOLLEDIGERE PAGINA LAYOUT
============================================================ */

.mail-app-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.mail-layout {
    display: grid;
    grid-template-columns: 240px 380px minmax(0, 1fr);
    min-height: calc(100vh - 165px);
    height: calc(100vh - 165px);
    padding: 0;
    border-radius: 28px;
    overflow: hidden;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(20, 35, 27, 0.06);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.mail-sidebar-panel,
.mail-list-panel,
.mail-reader-panel {
    min-width: 0;
    min-height: 0;
}

.mail-sidebar-panel {
    background: linear-gradient(180deg, #f7faf7 0%, #f3f8f4 100%);
    border-right: 1px solid #e8eeea;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mail-sidebar-header {
    display: flex;
    flex-direction: column;
}

.mail-compose-btn {
    width: 100%;
    justify-content: center;
}

.mail-folder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mail-folder-item {
    display: block;
    padding: 13px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    color: #1b3a28;
    background: #eef5f0;
    border: 1px solid #dde8df;
    transition: all 0.2s ease;
}

.mail-folder-item:hover {
    background: #e5efe8;
    transform: translateX(2px);
}

.mail-folder-item.active {
    background: linear-gradient(135deg, #16914a, #0d7139);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(18, 134, 69, 0.22);
}

.mail-list-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8eeea;
    background: #ffffff;
    overflow: hidden;
}

.mail-panel-top {
    padding: 22px 18px 16px 18px;
    border-bottom: 1px solid #edf2ee;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    background: #fcfdfc;
}

.mail-panel-heading h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #183726;
}

.mail-panel-heading p {
    margin: 0;
    color: #6a7a70;
    font-size: 14px;
}

.mail-panel-search input,
.mail-panel-search .form-control {
    width: 100%;
    border: 1px solid #d8e1db;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
}

.mail-panel-search input:focus,
.mail-panel-search .form-control:focus {
    outline: none;
    border-color: #8cc9a2;
    box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.10);
}

.mail-message-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.mail-message-item {
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #edf2ee;
    background: #ffffff;
    padding: 18px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-left 0.2s ease;
    border-left: 4px solid transparent;
    appearance: none;
    font-family: inherit;
}

.mail-message-item:hover {
    background: #f8fbf8;
}

.mail-message-item.active {
    background: #f3faf5;
    border-left: 4px solid #16914a;
}

.mail-message-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mail-message-name {
    font-size: 14px;
    font-weight: 700;
    color: #193628;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-message-date {
    font-size: 12px;
    color: #738278;
    white-space: nowrap;
    flex-shrink: 0;
}

.mail-message-subject {
    font-size: 15px;
    font-weight: 700;
    color: #1e3528;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mail-message-snippet {
    font-size: 13px;
    line-height: 1.5;
    color: #6d7c72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mail-reader-panel {
    background: #fcfdfc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mail-reader-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

.mail-reader-empty-inner {
    text-align: center;
    max-width: 380px;
}

.mail-reader-empty-inner h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #183726;
}

.mail-reader-empty-inner p {
    margin: 0;
    color: #6b7b70;
    line-height: 1.6;
}

.mail-reader-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.mail-reader-header {
    padding: 24px 26px 18px 26px;
    border-bottom: 1px solid #edf2ee;
    flex-shrink: 0;
    background: #ffffff;
}

.mail-reader-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mail-reader-header h2 {
    margin: 0 0 16px 0;
    font-size: 22px;
    line-height: 1.35;
    color: #173625;
}

.mail-reader-meta {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #53645a;
}

.mail-reader-body {
    padding: 26px;
    white-space: pre-wrap;
    line-height: 1.8;
    color: #22372a;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #fcfdfc;
}

.mail-empty-list {
    padding: 40px 22px;
}

.mail-empty-list h3 {
    margin: 0 0 8px 0;
    color: #183726;
}

.mail-empty-list p {
    margin: 0;
    color: #6b7b70;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1200px) {
    .mail-layout {
        grid-template-columns: 220px 320px minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .mail-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .mail-sidebar-panel,
    .mail-list-panel {
        border-right: none;
        border-bottom: 1px solid #e8eeea;
    }

    .mail-message-list {
        max-height: 420px;
    }

    .mail-reader-panel {
        min-height: 420px;
    }

    .mail-message-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .mail-message-name,
    .mail-message-date {
        white-space: normal;
    }
}
/* ============================================================
   EMAIL MODULE - STAP 4
============================================================ */

.email-form input[type="file"] {
    padding: 10px 12px;
    background: #fff;
}

.email-group-info p + p {
    margin-top: 4px;
}
.login-page .sidebar {
    display: none;
}

.login-page .main-content {
    margin-left: 0;
    padding: 0;
}

.login-logo {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   EMAIL MODULE - HTML TEMPLATE MODE
============================================================ */

.email-preview-note {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f6fbf7;
    border: 1px solid #d9eadf;
    color: #234432;
    line-height: 1.6;
}

.email-preview-note strong {
    color: #173326;
}

/* ============================================================
   MAIL PREVIEW / REPLY
============================================================ */

.mail-message-item {
    font-family: inherit;
}

.mail-reader-actions {
    margin-bottom: 16px;
}

/* ============================================================
   LOGIN PAGE - SPLIT MODERNE STIJL
============================================================ */

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 138, 76, 0.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(210, 233, 215, 0.28), transparent 28%),
        linear-gradient(135deg, #eef4ef 0%, #f5f8f5 100%);
}

.login-page .sidebar {
    display: none;
}

.login-page .main-content {
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
}

.login-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.login-shell.login-shell-split {
    width: 100%;
    max-width: 1280px;
    min-height: 760px;
    display: grid;
    grid-template-columns: 500px 1fr;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 30px 70px rgba(16, 24, 40, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
}

.auth-card-split {
    border-radius: 0;
    box-shadow: none;
    border: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 249, 0.94) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px;
    position: relative;
}

.auth-card-split::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-panel-inner {
    width: 100%;
    max-width: 370px;
    position: relative;
    z-index: 2;
}

.login-panel-top {
    margin-bottom: 30px;
}

.login-logo-small {
    max-width: 210px;
    margin: 0;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.10));
}

.auth-card-header-split {
    margin-bottom: 30px;
}

.auth-card-header-split .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #617469;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.auth-card-header-split h2 {
    margin: 0 0 10px 0;
    font-size: 44px;
    line-height: 1.04;
    color: #18261d;
    font-weight: 800;
}

.auth-card-header-split p {
    margin: 0;
    color: #6f7f75;
    font-size: 16px;
    line-height: 1.65;
}

.login-form {
    gap: 18px;
}

.login-form .form-group {
    gap: 8px;
}

.login-form label {
    font-size: 14px;
    font-weight: 700;
    color: #213229;
}

.login-form .input-wrap {
    position: relative;
}

.login-form input {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: 1px solid #d7e3da;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    padding: 0 18px;
    font-size: 15px;
    color: #19281f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 4px 12px rgba(20, 35, 27, 0.03);
}

.login-form input::placeholder {
    color: #9aa99f;
}

.login-form input:focus {
    outline: none;
    border-color: #68ac83;
    box-shadow:
        0 0 0 4px rgba(31, 138, 76, 0.10),
        0 10px 26px rgba(31, 138, 76, 0.08);
    transform: translateY(-1px);
}

.input-password-wrap input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #658171;
    padding: 0;
}

.password-toggle:hover {
    color: #1f8a4c;
}

.login-submit-btn {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, #27a354 0%, #1f8a4c 100%);
    box-shadow:
        0 16px 28px rgba(31, 138, 76, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-submit-btn:hover {
    background: linear-gradient(180deg, #2aae5a 0%, #1b7e45 100%);
    transform: translateY(-1px);
}

.login-visual-panel {
    position: relative;
    min-height: 760px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(250, 252, 250, 0.96) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 42px;
    border-left: 1px solid rgba(222, 231, 224, 0.95);
    overflow: hidden;
}

.login-visual-gloss {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.10) 35%, rgba(255, 255, 255, 0.00) 60%);
    pointer-events: none;
    z-index: 1;
}

.login-visual-header {
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-visual-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 225, 217, 0.95);
    color: #6a796f;
    font-size: 13px;
    font-weight: 700;
    box-shadow:
        0 8px 18px rgba(18, 34, 24, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.login-visual-image {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 470px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(20, 35, 27, 0.06));
}

@media (max-width: 980px) {
    .login-page-wrap {
        padding: 18px;
    }

    .login-shell.login-shell-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual-panel {
        min-height: 300px;
        order: -1;
        padding: 24px;
        border-left: none;
        border-bottom: 1px solid rgba(222, 231, 224, 0.95);
    }

    .login-visual-image {
        max-height: 220px;
    }

    .auth-card-split {
        padding: 30px 22px;
    }

    .login-panel-inner {
        max-width: 100%;
    }

    .auth-card-header-split h2 {
        font-size: 34px;
    }

    .login-logo-small {
        max-width: 180px;
    }
}

/* =========================================
   LOGOUT BUTTON – OPVALLEND & CLEAN
========================================= */

.logout-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;

    background: linear-gradient(135deg, #ff5f5f, #d64545);
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    text-align: center;

    box-shadow: 0 8px 20px rgba(255, 80, 80, 0.25);
    border: none;

    transition: all 0.2s ease;
}

/* hover effect */
.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 80, 80, 0.35);
    background: linear-gradient(135deg, #ff7070, #e14f4f);
}

/* klik effect */
.logout-btn:active {
    transform: scale(0.97);
}

/* =========================================
   SIDEBAR LAYOUT FIX
========================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* alles bovenin */
.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-logout {
    margin-top: auto;
    margin-bottom: 20px;
}