/* ==========================================
 * 1. RESET & BASISINSTELLINGEN
 * ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-y: scroll; /* Forceer altijd een scrollbarruimte zodat de pagina niet verspringt en netjes scrollbaar blijft */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    color: #0f172a;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.page-top {
    justify-content: flex-start;
}

body.page-centered {
    justify-content: center;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}


/* ==========================================
 * 2. LAYOUT & CONTAINER ELEMENTEN
 * ========================================== */
.container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    width: 100%;
}

@media (min-width: 640px) {
    .card { padding: 28px; }
}

h1 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: #0f172a; }
h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: #1e293b; }


/* ==========================================
 * 3. ADMIN HEADER & NAVIGATIE
 * ========================================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-sizing: border-box;
    z-index: 50;
}

.admin-header span {
    color: #f8fafc;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.admin-header-title-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-pointer-none {
    pointer-events: none;
}

.admin-header-links {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 100%;
}

.admin-header-links a, 
.admin-header-links button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.admin-header-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.admin-header-links a:hover, 
.admin-header-links button:hover {
    color: #ffffff;
    text-decoration: underline;
}

.admin-header-links a.logout-btn {
    color: #f87171 !important;
}

.admin-header-links a.logout-btn:hover {
    color: #fca5a5 !important;
}

/* Hamburger menu voor mobiele schermen */
.hamburger-btn {
    display: none !important;
    background: none;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    padding: 6px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 99999 !important;
    min-width: 160px;
}

.hamburger-dropdown a,
.hamburger-dropdown button {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    text-align: left;
    padding: 4px 0;
    width: 100%;
}

.hamburger-dropdown a.active {
    color: #3b82f6;
    font-weight: 600;
}

.hamburger-dropdown a:hover,
.hamburger-dropdown button:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hamburger-dropdown a.logout-btn {
    color: #f87171 !important;
}

.hamburger-dropdown.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .admin-header-links.desktop-menu {
        display: none !important;
    }
    .hamburger-btn {
        display: inline-flex !important;
    }
}


/* ==========================================
 * 4. FORMULIEREN & INPUT VELDEN
 * ========================================== */
.field { 
    margin-bottom: 14px; 
    width: 100%;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="password"],
input[type="email"],
input[type="text"],
input[type="number"],
input[type="file"],
input[type="datetime-local"],
select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    padding: 4px;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 5px; }

input:focus, select:focus {
    border-color: #3b82f6;
    background: #ffffff;
}


/* ==========================================
 * 5. KNOPPEN (BUTTONS)
 * ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    min-width: 0;
    -webkit-appearance: none;
}
.btn:hover { background: #2563eb; }
.btn:disabled, 
.btn-secondary:disabled, 
.btn-danger-light:disabled {
    background: #94a3b8 !important;
    color: #ffffff !important;
    border-color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.btn-full { width: 100%; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }

.btn-sm.active-page {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.btn-danger-light {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-danger-light:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #b91c1c;
}


/* ==========================================
 * 6. MELDINGEN & STATUS BADGES
 * ========================================== */
.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    word-break: break-word;
}

.success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-expired-black { background: #000000; color: #ffffff; }
.badge-protected-small { font-size: 10px; padding: 1px 4px; }


/* ==========================================
 * 7. ICONEN
 * ========================================== */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-sm { width: 13px; height: 13px; }
.icon-lg { width: 22px; height: 22px; stroke-width: 1.75; }


/* ==========================================
 * 8. OPSLAGINDICATOR & UPLOAD COMPONENTEN
 * ========================================== */
.storage-indicator-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: #e2e8f0;
}
.storage-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}
.storage-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    overflow: hidden;
}
.storage-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-container { display: none; margin-top: 16px; width: 100%; }
.progress-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background: #3b82f6; transition: width 0.1s; }
.progress-text { 
    font-size: 11px; 
    color: #475569; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 6px; 
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-box {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    width: 100%;
}
.link-box input { background: #ffffff; cursor: pointer; margin-bottom: 8px; }

.dropzone-container {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.dropzone-container:hover, .dropzone-container.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}
.dropzone-icon {
    width: 36px;
    height: 36px;
    color: #3b82f6;
    margin-bottom: 8px;
}
.dropzone-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}
.dropzone-sub {
    font-size: 12px;
    color: #64748b;
}


/* ==========================================
 * 9. TABELLEN & BUNDEL LIJSTEN (DESKTOP & MOBIEL)
 * ========================================== */
.bulk-actions-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    gap: 10px;
}
.bulk-actions-bar.active {
    display: flex;
}

.col-select, .file-checkbox {
    display: none;
}
.selecting-mode .col-select, 
.selecting-mode .file-checkbox {
    display: inline-block !important;
}

.desktop-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.desktop-table th {
    background: #f8fafc;
    padding: 12px 14px;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.desktop-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.mobile-cards {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.file-card-mobile {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.file-card-title {
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
    color: #0f172a;
}

.file-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 6px;
    margin-top: 2px;
    width: 100%;
}

.file-card-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .desktop-table { display: none !important; }
    .mobile-cards { display: flex !important; }
}

@media (min-width: 768px) {
    .desktop-table { display: table !important; }
    .mobile-cards { display: none !important; }
}

/* Specifieke sub-elementen voor tabel- en kaartweergave */
.bundle-name-container {
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bundle-name-link { text-decoration: none; }
.bundle-date-sub { font-size: 11px; color: #94a3b8; }
.bundle-expiry-span { font-size: 12px; }

.mobile-card-title-inner {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-card-meta-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}


/* ==========================================
 * 10. MODALS & POPUPS
 * ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}


/* ==========================================
 * 11. BESTANDSBEHEER & BESTANDSLIJSTEN
 * ========================================== */
.file-info-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.file-icon-box {
    width: 46px; height: 46px; background: #e0e7ff; color: #3730a3;
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}

.file-name {
    font-weight: 600; font-size: 14px; word-break: break-all;
}

.public-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 10px;
    transition: opacity 0.2s ease;
}
.public-file-item.downloaded { opacity: 0.45; }

.staged-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}


/* ==========================================
 * 12. FAQ SECTIE
 * ========================================== */
.faq-section {
    margin-top: 16px;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 14px;
}
.faq-details {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
}
.faq-summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: #3b82f6;
}
.faq-content {
    margin-top: 8px;
    color: #475569;
    line-height: 1.5;
    font-size: 12px;
}
.faq-content ul { margin: 6px 0 0 16px; padding: 0; }
.faq-content li { margin-bottom: 4px; }


/* ==========================================
 * 13. TOAST MELDINGEN & FOOTER
 * ========================================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    text-align: center;
    padding: 16px 0 8px;
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-top: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}


/* ==========================================
 * 14. ZOEKBALK EN ACTIE CONTROLS
 * ========================================== */
.list-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.list-actions-bar .field {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

.list-actions-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-actions-bar input[type="text"],
.list-actions-bar select,
.list-actions-bar .btn {
    height: 42px;
    box-sizing: border-box;
    font-size: 13px;
}

.list-actions-bar select {
    width: auto;
    padding: 0 12px;
}

.list-actions-bar .btn {
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}


/* ==========================================
 * 15. AFBEELDINGEN PREVIEW & LIGHTBOX
 * ========================================== */
.preview-gallery-section { margin-bottom: 16px; }

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.preview-grid {
    display: grid;
    gap: 8px;
    background: #0f172a;
    padding: 10px;
    border-radius: 12px;
}

.preview-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    position: relative;
    cursor: pointer;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-overlay {
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}

@media (max-width: 767px) {
    .lightbox-overlay { background: #000000; }
}

.lightbox-content-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close-btn {
    position: absolute;
    top: -12px; right: -12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-close-btn span { display: inline-block; transform: translateY(1px); }

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    backdrop-filter: blur(4px);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
    transform: scale(1.05);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 16px; }
.lightbox-prev svg { margin-right: 2px; }
.lightbox-next { right: 16px; }
.lightbox-next svg { margin-left: 2px; }

.lightbox-nav-btn svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-image {
    max-width: 100%;
    max-height: 1080px;
    object-fit: contain;
    border-radius: 0;
    display: block;
    border: none;
    outline: none;
}


/* ==========================================
 * 16. SPECIFIEKE STIJLEN VOOR VERLOPEN BUNDELS
 * ========================================== */
.bundle-row-expired {
    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
}

.bundle-card-expired {
    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    padding: 12px 14px;
}

.bundle-dimmed { opacity: 0.75; }


/* ==========================================
 * 17. DASHBOARD HULPSTIJLEN & 2FA INVOERVELD
 * ========================================== */
.dashboard-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-actions-wrapper { 
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease, 
                margin-bottom 0.35s ease;
}

.dashboard-actions-wrapper.expanded {
    max-height: 140px;
    opacity: 1;
    margin-bottom: 14px;
}

.dashboard-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-select-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    color: #334155;
    text-transform: none;
}

.dashboard-select-input { width: 16px; height: 16px; cursor: pointer; }
.dashboard-count-text { font-size: 12px; color: #64748b; font-weight: 600; }
.dashboard-actions-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.dashboard-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}

.dashboard-menu-popup {
    display: none;
    position: absolute;
    right: 10px; top: 45px;
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
    padding: 6px;
    min-width: 150px;
}

.dashboard-menu-btn {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
}

.dashboard-menu-btn-danger {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    gap: 8px;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 12px;
}

.dashboard-fade-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.dashboard-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.dashboard-pagination-btn { min-width: 32px; text-align: center; }

/* 6-cijferig 2FA invoerveld */
.otp-inputs-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-input-box {
    width: 45px;
    height: 50px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.otp-input-box:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* ==========================================
 * 18. SETTINGS SIDEBAR & TABBLAD LAYOUT
 * ========================================== */
.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.settings-sidebar {
    padding: 12px !important;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.settings-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.settings-nav-item.active {
    background: #3b82f6;
    color: #ffffff;
}

.settings-nav-item.active .icon {
    stroke: #ffffff;
}

.settings-content-area {
    width: 100%;
    min-width: 0;
}

.settings-panel {
    margin-bottom: 0 !important;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

.settings-block-title {
    font-size: 16px;
    margin-bottom: 16px;
}

.settings-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.settings-section-title-space {
    margin-bottom: 10px;
}

.settings-card-section {
    margin-bottom: 16px;
}

.settings-bordered-section {
    margin-bottom: 16px;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 14px;
}

.settings-row-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.settings-input-fixed {
    height: 42px;
    box-sizing: border-box;
}

.settings-input-flex-1 {
    flex: 1;
}

.settings-color-input {
    width: 50px;
}

.settings-btn-padding-std {
    padding: 0 14px;
    font-size: 13px;
}

.settings-btn-sm-custom {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.settings-field-margin-top {
    margin-top: 10px;
}

.settings-field-reset {
    margin: 0;
}

.settings-margin-top-sm {
    margin-top: 10px;
}

.settings-margin-top-md {
    margin-top: 16px;
}

.settings-input-readonly {
    background: #f1f5f9;
    flex: 1;
    height: 42px;
    box-sizing: border-box;
}

.settings-notice-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-notice-success-text {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.settings-grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-notifications-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-checkbox-label {
    font-size: 13px;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    color: #0f172a;
    font-weight: 500;
}

.settings-checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.settings-test-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-test-label {
    font-size: 12px;
    color: #64748b;
}

.settings-btn-test {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.settings-textarea-code {
    font-family: monospace;
    font-size: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    outline: none;
    box-sizing: border-box;
}

.settings-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 14px;
}

.settings-subblock {
    margin-top: 20px;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 16px;
}

.settings-2fa-active-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-2fa-active-text {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.settings-form-inline {
    margin: 0;
}

.settings-2fa-setup-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.settings-2fa-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    margin-top: 0;
}

.settings-2fa-flex {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.settings-2fa-qrcode {
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.settings-2fa-secret-text {
    font-size: 11px;
    color: #475569;
    word-break: break-all;
}

.settings-2fa-code-badge {
    background: #e2e8f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
}

.settings-2fa-bottom-flex {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.settings-totp-label {
    font-size: 11px;
    margin-bottom: 4px;
}

.settings-totp-input {
    height: 38px;
    box-sizing: border-box;
}

.settings-totp-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
}

.settings-session-header-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.settings-session-header-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

.settings-session-empty {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.settings-session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-session-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-session-info {
    flex: 1;
    min-width: 0;
}

.settings-session-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-session-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 9999px;
    font-weight: 600;
}

.settings-session-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.settings-session-action-align {
    align-self: flex-end;
    margin-left: auto;
}

.settings-session-btn-action {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.settings-audit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
}


/* ==========================================
 * 19. COOKIE BANNER PAGINA AANPASSINGEN
 * ========================================== */
body.has-cookie-banner {
    padding-bottom: 100px;
}


/* ==========================================
 * 20. PRIVACY POLICY STYLING
 * ========================================== */
.privacy-content {
    line-height: 1.6;
    font-size: 13.5px;
    color: #475569;
    font-weight: 300;
}

.privacy-content h1, 
.privacy-content h2, 
.privacy-content h3 {
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    margin-top: 24px;
    margin-bottom: 6px;
}

.privacy-content h1:first-child, 
.privacy-content h2:first-child, 
.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 300;
}

.privacy-content ul, 
.privacy-content ol {
    margin: 0 0 12px 18px;
    padding: 0;
}

.privacy-content li {
    margin-bottom: 4px;
    font-weight: 300;
    color: #475569;
}

.privacy-content, 
.privacy-content .ql-container, 
.privacy-content .ql-editor {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.privacy-back-wrapper {
    margin-bottom: 14px;
}

#btnToggleUploads {
    min-width: 92px;
    text-align: center;
}

@media (max-width: 480px) {
    .dashboard-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-header-flex > div:first-child {
        width: 100%;
        justify-content: space-between;
    }
    
    #btnToggleUploads {
        width: 100%;
    }
}