:root {
    /* =========================================
       1. VARIABELEN
       ========================================= */
    --primary-color: #ff8a00;
    --secondary-color: #ff5e00;
    --success-color: #28a745;
    --icon-placeholder: #e0e0e0;
    
    --primary-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --active-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    --primary-shadow-color: color-mix(in srgb, var(--primary-color), transparent 70%);
    --primary-faint: color-mix(in srgb, var(--primary-color), transparent 90%);

    --bg-glass: rgba(255, 255, 255, 0.98);
    --bg-solid: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.7);
    --bg-overlay: rgba(255, 255, 255, 0.6);
    --bg-item: rgba(255, 255, 255, 0.5);
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-inverse: #ffffff;
    
    --border-subtle: rgba(0,0,0,0.05);
    --border-input: rgba(0,0,0,0.1);

    --shadow-soft: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-strong: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --shadow-modal-outer: 0 20px 50px rgba(0,0,0,0.6);
    --shadow-primary: 0 4px 15px var(--primary-shadow-color);
    --shadow-primary-hover: 0 6px 20px var(--primary-shadow-color);
    --shadow-primary-active: 0 8px 25px var(--primary-shadow-color);

    --modal-width: 520px;
    --modal-footer-height: 100px;
    --step-title-size: 2em;
    --icon-size-medium: 48px;
    --icon-size-small: 28px;
    --icon-size-std: 24px;
    
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
    --padding-x-global: 25px; 

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 30px;
    --radius-big-pill: 50px;
    --radius-circle: 50%;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
    --font-size-close: 36px;
    --font-size-h4: 14px;
    
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
}

/* =========================================
   2. BASE STYLES
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; width: 100%; overflow: hidden; }

body {
    margin: 0; padding: 0;
    width: 100%; height: 100%; max-width: 100vw;
    background: transparent !important;
    font-family: var(--font-family) !important;
    color: var(--text-main);
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 10px; }

.bootstrap-dialog.type-primary .modal-dialog {
    width: var(--modal-width); 
    max-width: 100%; 
    height: 100%; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    padding: var(--spacing-sm);
}

.bootstrap-dialog.type-primary .modal-content {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-strong);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative; 
    display: flex; flex-direction: column;
    width: 100%;
    max-height: 90vh; 
    height: auto; 
}

/* Modal Body */
.bootstrap-dialog.type-primary .modal-body, 
.bootstrap-dialog-message, 
.bootstrap-dialog-body {
    padding: 0 !important;
    flex: 1 1 auto; 
    display: flex; flex-direction: column; 
    overflow: hidden; 
    min-height: 0; 
}
.terminology-salon { display: flex; flex-direction: column; height: 100%; overflow: hidden; width: 100%; }

#confetti-canvas { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 9999; 
}

/* HEADER & CLOSE */
.bootstrap-dialog-title { display: none !important; }

.bootstrap-dialog.type-primary .modal-header {
    background: var(--bg-solid) !important; 
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    display: flex; flex-direction: column; position: relative;
    z-index: 100;
    flex-shrink: 0; 
}

/* Close button - Z-index hoog houden */
.bootstrap-dialog-close-button { 
    position: absolute; top: 15px; right: 20px; z-index: 1001; 
}
.bootstrap-dialog-close-button .close {
    background: transparent; opacity: 0.6;
    font-weight: 300; font-size: var(--font-size-close); line-height: 1; padding: 0;
    border: none; outline: none; color: var(--text-main);
    transition: opacity var(--transition-fast); text-shadow: none;
}
.bootstrap-dialog-close-button .close:hover { opacity: 1; }

/* FOOTER */
.bootstrap-dialog.type-primary .modal-footer {
    height: var(--modal-footer-height) !important;
    background: var(--bg-solid) !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding: 0 var(--padding-x-global) !important;
    display: flex !important; align-items: center !important; justify-content: center !important; 
    flex-shrink: 0; 
    width: 100%;
    position: relative;
    z-index: 101; 
}

#wizardFooterContent {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}

/* AANGEPAST: Layout voor Invoice Footer (Links bedrag, Rechts knoppen) */
#invoiceFooterContent {
    width: 100%; 
    display: none; 
    justify-content: space-between; /* Space between voor links/rechts */
    align-items: center; 
    flex-direction: row; 
    gap: 10px;
}

.modal-footer .powered {
    height: 14px; object-fit: contain; opacity: 0.8; margin: 0; filter: var(--logo-filter);
}

.booking-summary {
    display: none;
    flex-direction: column;
    justify-content: center;
    font-size: 13px; line-height: 1.4; color: var(--text-muted); text-align: left;
    margin-left: 0; z-index: 10;
}
.booking-summary strong { color: var(--text-main); display: block; font-size: 14px; margin-bottom: 2px; }
.booking-summary .summary-price { 
    color: var(--primary-color); font-weight: bold; font-size: 16px; display: block; margin-top: 2px;
}
.summary-details { font-size: 11px; opacity: 0.8; display: block; }

.footer-buttons, .footer-custom-button {
    display: flex; gap: var(--spacing-sm); align-items: center; margin-left: auto; padding-right: 0;
}

/* COMPONENTS */
.modal-footer .btn, .add-to-calendar-btn, .invoice-btn, .btn-pay-option {
    height: 48px; border-radius: var(--radius-pill); font-weight: 600; 
    padding: 0 var(--spacing-xl);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-normal) ease; text-decoration: none;
    width: 100%; 
}

.add-to-calendar-btn {
    background: var(--primary-gradient); 
    box-shadow: var(--shadow-primary); 
    color: var(--text-inverse) !important;
    margin-top: 10px;
}
.add-to-calendar-btn:hover {
    box-shadow: var(--shadow-primary-hover); opacity: 0.9; transform: translateY(-2px);
}

.invoice-btn {
    background: transparent; 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color) !important;
    margin-top: 15px; 
}
.invoice-btn:hover { 
    background: #e0e0e0; 
    color: #333333 !important; 
    border-color: #e0e0e0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-primary, .modal-footer .btn-primary {
    background: var(--primary-gradient) !important; border: none !important; box-shadow: var(--shadow-primary); color: var(--text-inverse) !important;
    width: auto; 
}
.btn-primary:hover:not(:disabled), .modal-footer .btn-primary:hover:not(:disabled) {
    background: var(--primary-gradient) !important; box-shadow: var(--shadow-primary-hover); opacity: 0.9; transform: translateY(-2px); color: var(--text-inverse);
}
.modal-footer .btn-primary:disabled, .modal-footer .btn-primary:disabled:hover {
    background: var(--border-input) !important; box-shadow: none !important; cursor: not-allowed; transform: none !important; opacity: 0.6; color: var(--text-muted) !important;
}

.modal-footer .btn-default {
    background: var(--bg-overlay) !important; border: 1px solid var(--border-input) !important; color: var(--text-muted) !important; backdrop-filter: blur(5px);
    width: auto;
}
.modal-footer .btn-default:hover {
    background: var(--bg-solid) !important; box-shadow: var(--shadow-soft); color: var(--text-main) !important;
}

.btn-start-big {
    background: var(--primary-gradient); color: var(--text-inverse) !important; font-size: 18px; font-weight: bold;
    padding: 15px 50px; border-radius: var(--radius-big-pill); border: none; box-shadow: var(--shadow-primary-hover);
    transition: all var(--transition-normal) ease;
}
.btn-start-big:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary-active); opacity: 0.9; }

.h4, h4 { font-size: var(--font-size-h4) !important; line-height: 1.3; color: var(--text-main); }
.scizzr-text {
    font-weight: bold; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; 
}

/* HEADER ELEMENTS */
.step-container { padding: 0 var(--padding-x-global); margin: var(--spacing-lg) 0 var(--spacing-sm); flex-shrink: 0; width: 100%; }
.step-title { font-size: var(--step-title-size); font-weight: bold; color: var(--text-main); }
.step-instruction { margin: 4px 0 12px; font-size: 14px; color: var(--text-muted); }

.progress-wrapper { padding: 0 var(--padding-x-global) var(--spacing-sm); flex-shrink: 0; width: 100%; }
.progress { height: 8px; background-color: var(--border-input); border-radius: 10px; border: none; margin: 0; width: 100%; }
.progress-bar { 
    background: var(--primary-gradient) !important; 
    box-shadow: 0 0 10px var(--primary-shadow-color); 
    border-radius: 10px; 
    transition: width 0.6s ease-in-out !important; 
}

/* CONTENTS */
.contents {
    position: relative; margin-top: 0 !important; padding: 0 var(--padding-x-global);
    flex: 1; 
    display: flex; flex-direction: column;
    overflow: hidden; 
    border-top: none;
    transition: all var(--transition-normal) ease; width: 100%;
    min-height: 0; 
}
.contents::before { display: none !important; }
.contents.no-gradient { border-top: none !important; }

.wizardStep { 
    height: 100%; 
    display: none; 
    flex-direction: column; 
    width: 100%; 
    overflow: hidden; 
}

.pre-scrollable {
    max-height: none !important; 
    height: 100%; 
    overflow-y: auto !important; 
    overflow-x: hidden !important;
    padding: 20px 5px !important; 
    -webkit-overflow-scrolling: touch; width: 100%;
}

/* LIST ITEMS */
.list-group { margin-bottom: 0 !important; }

.list-group-item, .select-list a {
    background-color: var(--bg-item); border: 1px solid var(--border-subtle);
    margin-bottom: var(--spacing-sm); border-radius: var(--radius-lg) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: all var(--transition-fast) ease; 
    padding: var(--spacing-md) var(--spacing-lg); width: 100%; color: var(--text-main); outline: none !important;
    display: flex; flex-direction: column; justify-content: center;
}
.list-group-item:focus, .select-list a:focus { background-color: var(--bg-item); color: var(--text-main); outline: none; text-decoration: none; }

.list-group-item:hover { background-color: #ffffff !important; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
@media (prefers-color-scheme: light) {
    .list-group-item:hover { color: #333 !important; }
    .list-group-item:hover p, .list-group-item:hover h4 { color: #333 !important; }
}

.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
    background-color: var(--bg-solid) !important; border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px var(--primary-faint); color: var(--text-main) !important; z-index: 2;
}
.list-group-item-heading { text-overflow: ellipsis; overflow: hidden; padding-right: 80px; margin-bottom: 2px; }
.list-group-item.active p, .list-group-item.active h4 { color: var(--text-main) !important; }

.duration-badge {
    font-size: 0.85em; color: var(--text-muted); font-weight: normal; display: inline-block; margin-left: 5px; opacity: 0.8;
}
.list-group-item.active .duration-badge { color: var(--text-main) !important; }

/* FORMS */
.form-group { margin-bottom: 0 !important; }
.form-control {
    border-radius: var(--radius-md) !important; border: 1px solid var(--border-input);
    background: var(--bg-input); color: var(--text-main); padding: var(--spacing-lg) 12px; 
    box-shadow: none; margin-bottom: 10px !important; transition: border-color var(--transition-fast); width: 100%;
}
.form-control:focus { border-color: var(--primary-color); background: var(--bg-solid); box-shadow: 0 0 0 3px var(--primary-faint); }
.form-control:not(:placeholder-shown):valid {
    border-color: var(--success-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2328a745" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2328a745" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}

.checkbox label { display: flex; align-items: center; cursor: pointer; color: var(--text-muted); padding-left: 0 !important; gap: 0 !important; }
.custom-checkbox {
    appearance: none; -webkit-appearance: none; width: 20px; height: 20px;
    border: 1px solid var(--text-muted); border-radius: var(--radius-sm); outline: none !important; cursor: pointer;
    background: var(--bg-solid); flex-shrink: 0; display: flex; justify-content: center; align-items: center;
    position: static !important; margin-left: 0 !important; margin-right: 8px !important; margin-top: 0 !important;
}
.custom-checkbox:checked { background: var(--active-gradient); border-color: transparent; }
.custom-checkbox:checked::after { content: ''; width: 6px; height: 11px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; }

/* NAV PILLS */
.nav-pills { 
    margin: 0 !important; 
    padding: 10px !important; 
    display: flex; 
    width: 100%; 
    justify-content: center;
    gap: 10px; 
    box-sizing: border-box;
    overflow: visible !important; 
}
.nav-pills > li { 
    flex: 1; 
    margin: 0 !important;
    position: relative; 
}
.nav-pills > li > a {
    border-radius: 40px; margin: 0; padding: 10px 5px;
    background: var(--bg-item); border: 1px solid var(--border-input);
    color: var(--text-muted); transition: all var(--transition-fast) ease; text-align: center;
    width: 100%; display: block;
    position: relative; 
    z-index: 1;
}
.nav-pills > li > a:hover { 
    background: var(--border-subtle); 
    z-index: 10; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    transform: translateY(-1px); 
}
.nav-pills > li.active > a {
    background: var(--active-gradient) !important; box-shadow: 0 3px 8px var(--primary-shadow-color);
    border-color: transparent; color: var(--text-inverse) !important;
    z-index: 5;
}

/* TIJD GRID */
#step4 .select-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px;
}
#step4 .list-group-item {
    margin-bottom: 0;
    text-align: center;
    padding: 15px 5px;
}
@media (max-width: 400px) {
    #step4 .select-list { grid-template-columns: repeat(3, 1fr); }
}

.list-group-item .price { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 600; color: var(--text-main); }
.stepEmployee .list-group a, #step6 .list-group a, #step7 .list-group a { position: relative; padding-left: 75px; min-height: 70px; display: flex; flex-direction: column; justify-content: center; }
.stepEmployee .list-group a.no-icon { padding-left: 20px; }

/* MISC */
.calendar-wrapper { background: var(--bg-item); border-radius: var(--radius-lg); padding: var(--spacing-md); border: 1px solid var(--border-input); width: 100%; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1.1em; margin-bottom: 15px; color: var(--text-main); padding: 0 10px; }
.calendar-nav { cursor: pointer; padding: 5px 10px; border-radius: var(--radius-circle); color: var(--text-main); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.calendar-day-name { font-size: 0.8em; color: var(--text-muted); font-weight: bold; text-transform: uppercase; }
.calendar-day {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius-circle);
    background: var(--bg-overlay); cursor: pointer; color: var(--text-main); font-weight: 500; font-size: 0.95em; 
    transition: background-color 0.2s ease, color 0.2s ease;
}
.calendar-day:hover:not(.disabled):not(.empty):not(.active) { background-color: #ffffff !important; color: #333333 !important; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.calendar-day.active { background: var(--bg-solid) !important; color: var(--text-main) !important; border: 1px solid var(--primary-color) !important; box-shadow: 0 0 0 2px var(--primary-faint); }
.calendar-day.disabled { color: var(--text-muted); opacity: 0.5; cursor: default; }
.calendar-day.today { border: 2px solid var(--text-muted); color: var(--text-main); }
.calendar-day.today.active { border: 2px solid var(--text-muted) !important; box-shadow: 0 0 0 1px var(--primary-color) !important; }

.payment-view-hidden { display: none; }
.qr-container { text-align: center; padding: 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; }
.qr-code-placeholder { width: 150px; height: 150px; margin: 0 auto; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #333; }
.confirmation-container { text-align: center; padding-top: 10px; width: 100%; }
.confirmation-icon { font-size: 48px; color: var(--success-color); margin-bottom: 10px; display: block; }
.confirmation-details-wrapper { background: var(--bg-overlay); border: 1px solid var(--border-input); border-radius: var(--radius-md); padding: 15px; margin: 10px 0 10px; text-align: center; color: var(--text-muted); width: 100%; }
.confirmed-item { border-bottom: 1px solid var(--border-input); padding-bottom: 10px; margin-bottom: 10px; }
.confirmed-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.confirmed-item strong { color: var(--text-main); font-size: 1.1em; display: block; margin-bottom: 5px; }

/* FULL SCREEN OVERLAYS (INVOICE & TERMS) */
#invoiceView, #termsView {
    width: 100%; height: 100%;
    display: none; 
    flex-direction: column;
    background: var(--bg-glass);
    padding: 0;
    position: relative; /* Fix voor layout flow */
    flex: 1;
    z-index: 50; 
}

/* Full screen content */
.invoice-content, .terms-content {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    padding: 31px; 
    overflow-y: auto;
    max-width: none !important; 
}

/* Header Row */
.invoice-header-row, .terms-header-row {
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 2px solid var(--border-subtle); 
    flex-shrink: 0; 
}
.invoice-header-row h2, .terms-header-row h2 { 
    font-size: 24px; margin: 0; color: var(--text-main); font-weight: 700; 
}

.invoice-header-group { display: flex; align-items: center; gap: 10px; }
.invoice-icons { display: flex; gap: 15px; align-items: center; }

.invoice-icon-btn {
    color: var(--text-muted); text-decoration: none; transition: color 0.2s;
    display: flex; align-items: center; justify-content: center;
    margin-top: 4px; 
}
.invoice-icon-btn:hover { color: var(--primary-color); }
.invoice-icon-btn svg { width: 22px; height: 22px; }

/* Close buttons (alleen voor terms, invoice gebruikt main close) */
.terms-close-btn { 
    display: none; /* AANGEPAST: Geen duplicate sluitknop */
}

.invoice-body, .terms-body { 
    text-align: left; flex: 1; overflow-y: auto;
}
.invoice-body p, .terms-body p { margin: 6px 0; font-size: 14px; color: var(--text-muted); }
.invoice-body strong, .terms-body strong { color: var(--text-main); }
.invoice-divider { border: 0; border-top: 1px dashed var(--border-subtle); margin: 20px 0; }
.invoice-row { display:flex; justify-content:space-between; margin-bottom:5px; font-size:14px; }
.invoice-total-row { display:flex; justify-content:space-between; font-weight:bold; font-size:18px; margin-top:5px; }

/* Nieuwe Classes */
.text-muted-custom { color: var(--text-muted); }
.text-main-custom { color: var(--text-main); }

.status-badge {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; font-weight: 600; font-size: 14px;
    width: 100%; border-radius: 50px !important;
}

.status-badge.paid { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-badge.open { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-open-text { color: var(--secondary-color); font-weight: bold; font-size:12px; display: block; margin-top:2px; }

/* AANGEPAST: Payment Buttons Styling in Invoice Footer */
.payment-buttons-group {
    display: flex; gap: 10px; width: auto; flex: 1;
    justify-content: flex-end;
}

.btn-pay-option {
    flex: 1; border: none; padding: 0 15px;
    height: 48px; 
    font-size: 14px; font-weight: 600; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform 0.1s, opacity 0.2s; text-decoration: none;
    border-radius: 50px !important;
    white-space: nowrap;
}
.btn-pay-option:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-pay-option:active { transform: translateY(0); }

.btn-ideal { background: linear-gradient(135deg, #CC0066, #ff3399); }
.btn-cc { background: linear-gradient(135deg, #007bff, #0056b3); }

/* In-Invoice Payment Forms */
#invoicePaymentForms { display: none; padding-top: 10px; text-align: center; }
#invoicePaymentForms .qr-container { border: none; box-shadow: none; background: transparent; padding: 0; }
#invoicePaymentForms h4 { margin-top: 0; }

.start-screen { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; width: 100%; }
.start-icon { width: 80px; height: 80px; background: var(--bg-item); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); }
.start-icon svg { width: 40px; height: 40px; fill: var(--primary-color); }

/* Mobile Full Height Override */
@media (max-width: 767px) {
    .modal { padding: 0 !important; }
    .bootstrap-dialog.type-primary .modal-dialog { 
        width: 100% !important; 
        max-width: 100vw !important; 
        height: 100% !important; 
        min-height: 100% !important;
        margin: 0 !important; 
        padding: 0 !important; 
    }
    .bootstrap-dialog.type-primary .modal-content { 
        height: 100% !important; 
        max-height: 100% !important; 
        border-radius: 0 !important; 
        border: none !important; 
    }
    .modal-body { flex: 1; display: flex; flex-direction: column; padding: 0 !important; width: 100%; }
    .contents { flex: 1; height: auto !important; border-top: none; }
    .modal-footer { padding: 0 var(--padding-x-global) !important; }
    .booking-summary { margin-left: 0; }
    .modal-footer .powered { display: none; }
    
    .invoice-content, .terms-content { padding: 21px; } 
    #headerNavPills { padding-bottom: 20px !important; }
    #invoiceFooterContent { flex-direction: column; align-items: stretch; text-align: center; }
    .payment-buttons-group { width: 100%; }
}

.icon-container { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: var(--icon-size-medium); height: var(--icon-size-medium); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-circle); overflow: hidden; background: var(--icon-placeholder); border: 2px solid var(--bg-solid); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.icon-container svg { width: var(--icon-size-small); height: var(--icon-size-small); fill: #666; vertical-align: middle; }
#step6 .icon-container, #step7 .icon-container { background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }
#step6 .icon-container svg { fill: var(--text-muted); }
#step6 .list-group-item.active .icon-container svg { fill: var(--text-main); }
.std-icon { fill: #777777; width: var(--icon-size-std); height: var(--icon-size-std); }
.list-group-item.active .std-icon { fill: #000000 !important; }
.icon-ideal .std-icon path[fill="#d50072"] { fill: inherit !important; }
.list-group-item.active .icon-ideal .std-icon path[fill="#d50072"] { fill: #d50072 !important; }

@media (prefers-color-scheme: dark) {
    :root {
        --bg-glass: rgba(25, 25, 25, 0.98); --bg-solid: #1e1e1e; --bg-input: rgba(255, 255, 255, 0.05);
        --bg-overlay: rgba(255, 255, 255, 0.05); --bg-item: rgba(255, 255, 255, 0.05);
        --text-main: #f0f0f0; --text-muted: #bbbbbb;
        --border-subtle: rgba(255, 255, 255, 0.1); --border-input: rgba(255, 255, 255, 0.15);
        --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    }
    .list-group-item:hover { background-color: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.2); }
    .list-group-item:hover { color: #f0f0f0 !important; }
    .list-group-item:hover .list-group-item-heading, .list-group-item:hover .list-group-item-text, .list-group-item:hover h4, .list-group-item:hover p { color: #f0f0f0 !important; }
    .calendar-day:hover:not(.disabled):not(.empty):not(.active) { background-color: rgba(255, 255, 255, 0.1) !important; color: #f0f0f0 !important; }
    .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { background-color: var(--bg-solid) !important; border-color: var(--primary-color) !important; box-shadow: 0 0 0 2px var(--primary-faint); }
    .list-group-item-heading, h4, .h4 { color: var(--text-inverse) !important; }
    .list-group-item p { color: #cccccc !important; }
    .btn-primary:hover, .modal-footer .btn-primary:hover, .add-to-calendar-btn:hover { filter: brightness(1.25); box-shadow: 0 0 20px var(--primary-shadow-color); background: var(--primary-gradient) !important; }
    .qr-container { background: var(--bg-item) !important; box-shadow: none !important; border: 1px solid var(--border-subtle); }
    .qr-code-placeholder { background: #ffffff !important; border-radius: var(--radius-sm); }
    .icon-container { background: rgba(255, 255, 255, 0.1) !important; border-color: transparent; }
    .icon-container svg, .std-icon { fill: #888888 !important; }
    .list-group-item.active .icon-container svg, .list-group-item.active .std-icon { fill: #ffffff !important; }
    .icon-ideal .std-icon path[fill="#d50072"] { fill: #888888 !important; }
    .list-group-item.active .icon-ideal .std-icon path[fill="#d50072"] { fill: #ffffff !important; }
    .stepTreatment .nav-pills > li > a { color: #ccc; }
    .contents::before { background: linear-gradient(180deg, rgba(25,25,25,1), rgba(25,25,25,0)); }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); }
    .bootstrap-dialog.type-primary .modal-content { border: 1px solid rgba(255,255,255,0.1) !important; box-shadow: var(--shadow-modal-outer) !important; }
    .bootstrap-dialog.type-primary .modal-header { background: var(--bg-solid) !important; border-color: var(--border-subtle); }
    /* Fix voor dark mode transparantie/onzichtbaarheid */
    .invoice-content, .terms-content { background: var(--bg-glass); color: #f0f0f0; border: none; }
    .invoice-close-btn, .terms-close-btn, .invoice-icon-btn { color: #aaa; }
    
    .status-badge.paid { background-color: rgba(21, 87, 36, 0.3); color: #75b798; border-color: #155724; }
    .status-badge.open { background-color: rgba(133, 100, 4, 0.3); color: #ffdf7e; border-color: #856404; }
}