/* ==========================================================================
   STIJLREGISTER - MASTER CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CHAPTER 1. BASIS & GLOBALE VARIABELEN
   -------------------------------------------------------------------------- */
:root {
    --radius-card: 8px;
    --radius-el: 6px;
    --border-color: #E2E8F0;
    --text-muted: #64748B;
    --remark-bg: rgba(0,0,0,0.03);
    --hover-bg: rgba(0,0,0,0.04);
    --input-bg: rgba(0,0,0,0.03);
    --danger-color: #EF4444;
}

body.theme-dark {
    --border-color: #334155;
    --remark-bg: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

body { 
    font-family: var(--font-body, 'Inter', sans-serif); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    transition: background-color 0.3s ease, color 0.3s ease; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading, 'Inter', sans-serif) !important; letter-spacing: -0.5px; color: var(--heading-color); }

.container { max-width: 1200px; margin: 40px auto; padding: 0 30px; width: 100%; box-sizing: border-box; }
.container-sm { max-width: 900px; margin: 40px auto; padding: 0 30px; width: 100%; box-sizing: border-box; }

.header { margin-bottom: 40px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(0,0,0,0.05); }
.header.no-border { border-bottom: none; }
.header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 5px; letter-spacing: -1px; }
.header p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; transition: color 0.2s ease, transform 0.2s ease; margin-bottom: 30px; }
.back-link:hover { color: var(--heading-color); transform: translateX(-3px); }

@media (max-width: 768px) { 
    .container, .container-sm { padding: 0 20px; margin-top: 20px; margin-bottom: 20px; } 
    .header { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 25px; padding-bottom: 15px; }
    .header h1 { font-size: 1.8rem; line-height: 1.2; }
    .header p { font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   CHAPTER 2. NAVIGATIE & MOBIEL MENU
   -------------------------------------------------------------------------- */
.desktop-nav-links { display: flex; align-items: center; gap: 12px; }
.mobile-fab { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
    .navbar { padding: 15px 20px !important; }
    .desktop-nav-links { display: none !important; }
    
    .mobile-fab {
        display: flex; position: fixed; bottom: 30px; right: 20px; width: 60px; height: 60px;
        background-color: var(--brand-color, #4F46E5); color: var(--color-btn2); border-radius: 8px;
        align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9998; border: none; cursor: pointer; transition: transform 0.2s ease;
    }
    .mobile-fab:active { transform: scale(0.95); }

    .mobile-nav-overlay {
        display: flex; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: var(--brand-color, #4F46E5); z-index: 9999; flex-direction: column;
        justify-content: center; align-items: flex-start; padding: 40px; box-sizing: border-box;
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

    .mobile-nav-close {
        position: absolute; top: 25px; right: 25px; background: rgba(0,0,0,0.15); border: none; 
        color: var(--color-btn2); border-radius: 8px; width: 44px; height: 44px; display: flex; 
        align-items: center; justify-content: center; cursor: pointer;
    }

    .mobile-nav-menu { display: flex; flex-direction: column; gap: 30px; width: 100%; }
    .mobile-nav-item { 
        display: flex; align-items: center; gap: 20px; color: var(--color-btn2); 
        text-decoration: none; font-size: 1.4rem; font-weight: 600; font-family: 'Inter', sans-serif; 
        transition: transform 0.2s;
    }
    .mobile-nav-item:active { transform: translateX(10px); }
    .mobile-nav-item svg { width: 28px; height: 28px; opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   CHAPTER 3. GRIDS & CARDS
   -------------------------------------------------------------------------- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.two-column-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.masonry-layout { column-count: 2; column-gap: 24px; margin-bottom: 24px; width: 100%; }
.masonry-layout .card { break-inside: avoid; page-break-inside: avoid; margin-bottom: 24px; display: inline-block; width: 100%; box-sizing: border-box;}

.card { background: var(--card-bg); border: none; border-radius: var(--radius-card); padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 24px; transition: transform 0.3s ease, box-shadow 0.3s ease; box-sizing: border-box; width: 100%;}
.card-header { font-size: 1.15rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); color: var(--heading-color); letter-spacing: -0.3px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Dashboard "Nieuwe Klant" gekleurde kaart */
.card-primary { background-color: var(--brand-color); color: white; }
.card-primary .card-header { border-color: rgba(255,255,255,0.1); color: var(--color-btn2); }
.card-primary label { color: rgba(255,255,255,0.8); }
.card-primary .form-control { background-color: rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.2); color: white; box-shadow: none; }
.card-primary .form-control::placeholder { color: rgba(255,255,255,0.5); }
.card-primary .form-control:focus { background-color: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.3); }

.card.share-card { background: var(--brand-color); color: var(--color-btn2); box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15); }
.card.share-card .card-header { color: var(--color-btn2); border-color: rgba(255,255,255,0.2); }

@media (max-width: 900px) { 
    .dashboard-grid { grid-template-columns: 1fr; gap: 20px; }
    .two-column-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .masonry-layout { column-count: 1; } 
    .card { padding: 20px; margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   CHAPTER 4. FORMULIEREN, INPUTS, DROPDOWNS & STEPS
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-group-dash { margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.form-group-dash.full-width { grid-column: 1 / -1; }
.form-group-dash label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--color-btn2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9;}

.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-el); font-family: inherit; font-size: 0.95rem; background-color: var(--input-bg); color: var(--text-main); transition: all 0.2s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01); outline: none; box-sizing: border-box; }
.form-control:focus { border-color: var(--brand-color); background-color: var(--card-bg); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.form-control:disabled, .form-control.muted { background-color: var(--remark-bg); border-color: var(--border-color); color: var(--text-muted); cursor: not-allowed; font-style: italic; }

select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236B7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 1rem top 50%; background-size: 0.65rem auto; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Titel Input (Proof Create) */
.title-input { width: 100%; border: none; border-bottom: 2px solid var(--border-color); font-size: 2.5rem; font-weight: 700; color: var(--heading-color); padding-bottom: 10px; margin-bottom: 20px; outline: none; transition: border-color 0.2s; background: transparent; letter-spacing: -1px; }
.title-input:focus { border-color: var(--brand-color); }
.title-input::placeholder { color: var(--text-muted); opacity: 0.5; }

@media (max-width: 768px) {
    .title-input { font-size: 1.8rem; }
}

/* Process Steps */
.step-circle { background: var(--brand-color); color: var(--color-btn2); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: bold; flex-shrink: 0; }

/* Drag & Drop */
.drop-zone, .dropzone { border: 2px dashed var(--border-color); border-radius: var(--radius-el); padding: 35px 20px; text-align: center; cursor: pointer; transition: all 0.2s ease; background: var(--remark-bg); margin-bottom: 15px; position: relative; width: 100%; box-sizing: border-box; }
.drop-zone:hover, .drop-zone.dragover, .dropzone:hover, .dropzone.dragover { border-color: var(--brand-color); background: rgba(79, 70, 229, 0.05); }
.drop-zone input[type="file"], .dropzone input[type="file"] { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.drop-zone-text { font-size: 0.95rem; color: var(--text-muted); pointer-events: none; font-weight: 500; display: block; word-break: break-word; }
.drop-zone-text strong { color: var(--brand-color); }

/* File List preview in dropzone */
#file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
#file-list .file-item { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 12px 16px; border-radius: var(--radius-el); font-size: 0.95rem; color: var(--heading-color); font-weight: 500; word-break: break-all; }
#file-list .file-item svg { flex-shrink: 0; color: var(--brand-color); }

/* Custom Color Pickers */
.custom-color-input[type="color"] { -webkit-appearance: none; border: none; width: 36px; height: 36px; padding: 0; cursor: pointer; border-radius: 4px; background: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-shrink: 0; }
.custom-color-input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.custom-color-input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,0.1); border-radius: 4px; }
.color-input-container { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-el); transition: all 0.2s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01); width: 100%; box-sizing: border-box; }
.color-input-container:focus-within { border-color: var(--brand-color); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.hex-text-input { border: none; outline: none; background: transparent; font-family: monospace; font-size: 1.05rem; font-weight: 600; color: var(--text-main); width: 100%; text-transform: uppercase; }

/* Toggles & Switches */
.switch-row, .setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 10px; }
.switch-row:last-of-type, .setting-row:last-child { border-bottom: none; margin-bottom: 20px; }
.switch-label, .setting-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--heading-color); margin: 0 0 4px 0; }
.switch-desc, .setting-info p { font-size: 0.85rem; color: var(--text-muted); display: block; font-weight: 400; text-transform: none; margin: 0; }
.switch, .toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input, .toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--card-bg); transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--brand-color); }
input:checked + .slider:before { transform: translateX(20px); background-color: var(--color-btn2); }
body.theme-dark .slider { background-color: #475569; }

/* Tags Input */
.tags-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-el); background-color: var(--input-bg); min-height: 46px; cursor: text; transition: all 0.2s ease; width: 100%; box-sizing: border-box; }
.tags-input-wrapper:focus-within { border-color: var(--brand-color); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); background-color: var(--card-bg); }
.tag-badge { background-color: var(--brand-color); color: var(--color-btn2); padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 4px; }
.tag-badge button { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.1rem; opacity: 0.7; padding: 0; margin-left: 2px; }
.tags-input-wrapper input { border: none; outline: none; background: transparent; color: var(--text-main); font-size: 0.95rem; flex-grow: 1; min-width: 120px; padding: 4px 0; }

/* --------------------------------------------------------------------------
   CHAPTER 5. BUTTONS, BADGES & SCRIPT LINKS
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background-color: var(--brand-text-color); color: var(--color-btn2); text-decoration: none; border-radius: var(--radius-el); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); filter: brightness(1.1); }

.btn-outline { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); box-shadow: none; }
.btn-outline:hover { border-color: var(--brand-color); color: var(--brand-color); }

.btn-danger { background-color: transparent; border: 1px solid rgba(239,68,68,0.3); color: var(--danger-color); }
.btn-danger:hover { background-color: var(--danger-color); color: white; border-color: var(--danger-color); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Speciale knop voor op de Nieuwe Klant/Delen kaart */
.btn-on-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background-color: var(--buttons-on-accent); color: var(--color-btn2); text-decoration: none; border-radius: var(--radius-el); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.btn-on-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); filter: brightness(1.1); background: var(--color-sec);}

/* Custom icon buttons for settings */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; padding: 0; flex-shrink: 0; }
.icon-btn:hover { background: var(--hover-bg); color: var(--text-main); }
.icon-btn.primary-active { color: var(--brand-text-color); background: var(--brand-color); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.icon-btn.delete:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }

/* Status Badges */
.badge { padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge-sm { padding: 4px 8px; font-size: 0.65rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.badge-sm .badge-dot { width: 6px; height: 6px; }

.badge.draft { background: var(--remark-bg); color: var(--text-muted); }
.badge.draft .badge-dot { background: var(--text-muted); }
.badge.pending { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge.pending .badge-dot { background: #d97706; }
.badge.approved { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge.approved .badge-dot { background: #059669; }
.badge.changes, .badge.changes_requested { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge.changes .badge-dot, .badge.changes_requested .badge-dot { background: #dc2626; }
.badge.approved_with_changes { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge.approved_with_changes .badge-dot { background: #2563eb; }
.badge.archived { background: var(--border-color); color: var(--text-main); }
.badge.archived .badge-dot { background: var(--text-main); }

.hex-badge { font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; font-family: monospace; font-weight: 600; display: inline-block; word-break: break-all; }

/* Script Links (Profile) */
.api-key-wrapper { display: flex; gap: 10px; flex-wrap: wrap; }
.script-links-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; width: 100%; }
.script-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all 0.2s ease; color: white; border: none; }
.script-link img { height: 14px; width: auto; border-radius: 2px; }
.script-link:hover { opacity: 0.85; transform: translateY(-1px); }
.script-link.ill { background-color: #330000; }
.script-link.ind { background-color: #49021f; }
.btn-api-gen { width: fit-content; }

@media (max-width: 768px) {
    .api-key-wrapper { flex-direction: column; align-items: stretch; }
    .api-key-wrapper .btn { width: 100%; }
    .btn-api-gen { width: 100%; }
}

/* --------------------------------------------------------------------------
   CHAPTER 6. LIJSTWEERGAVES (KLANTEN, ASSETS, PROOFS)
   -------------------------------------------------------------------------- */
.client-list, .asset-list, .proof-list, .file-list, .active-proofs-list { list-style: none; display: flex; flex-direction: column; width: 100%; }

.client-item, .asset-item, .proof-item, .file-item, .concept-item-link { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 16px 15px; border-bottom: 1px solid var(--border-color); 
    transition: background-color 0.2s ease, border-radius 0.2s ease; 
    text-decoration: none; color: inherit; flex-wrap: wrap; gap: 10px;
}
.client-item:last-child, .asset-item:last-child, .proof-item:last-child, .file-item:last-child, .concept-item-link:last-child { border-bottom: none; }
.client-item:hover, .proof-item:hover, .concept-item-link:hover { background-color: var(--hover-bg); border-radius: var(--radius-el); border-bottom-color: transparent; }

/* Dashboard Toggle Views */
.view-controls { display: flex; gap: 5px; background: var(--bg-color); padding: 4px; border-radius: 6px; }
.view-btn { background: transparent; border: none; cursor: pointer; padding: 6px 10px; border-radius: 4px; color: var(--text-muted); display: flex; align-items: center; transition: all 0.2s ease; }
.view-btn.active { background: var(--card-bg); color: var(--brand-color); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.client-container.view-list { display: block; }
.client-container.view-list .client-grid { display: none !important; }
.client-container.view-grid .client-list { display: none !important; }
.client-container.view-grid .client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Grote Klantkaarten Grid */
.client-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); height: 190px; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; position: relative; }
.client-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.card-logo-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 25px; background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); }
.card-logo-area img { max-width: 100%; max-height: 70px; object-fit: contain; transition: transform 0.3s ease; }
.client-card:hover .card-logo-area img { transform: scale(1.05); }
.card-no-logo { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); text-align: center; word-break: break-word; }
.card-footer { height: 55px; padding: 0 20px; display: flex; align-items: center; justify-content: center; background: var(--remark-bg); }
.card-client-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); text-align: center; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* --- Aangepaste Card Action Button --- */
.card-action-btn { position: absolute; top: 15px; right: 15px; background: var(--brand-color); color: var(--color-btn2); width: 32px; height: 32px; border-radius: var(--radius-el); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: all 0.2s ease; }
.client-card:hover .card-action-btn { opacity: 1; transform: scale(1); }

body.theme-dark .client-card .card-logo-area { background-color: #ffffff; border-bottom: none; }
body.theme-dark .client-card .card-footer { background-color: var(--color-ter); border-top: 1px solid rgba(255, 255, 255, 0.05); }
body.theme-dark .client-card .card-no-logo { color: #64748B; }

/* Concepten & Bestanden details */
.proof-info, .file-info { display: flex; align-items: flex-start; gap: 15px; width: 100%; word-break: break-word; }
.proof-thumb, .concept-thumb, .file-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-color); background: white; }
.proof-icon-fallback, .concept-icon-fallback, .file-icon { width: 48px; height: 48px; border-radius: 6px; background: var(--remark-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand-color); border: 1px solid var(--border-color); }

.proof-info-text strong, .file-info strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--heading-color); margin-bottom: 2px; word-break: break-word; }
.proof-info-text span, .file-info span { font-size: 0.85rem; color: var(--text-muted); display: block; font-weight: 500; }

/* Schone layout voor de Concepten lijst in de Dashboard Sidebar */
.concept-item-link { padding: 12px; gap: 12px; border-bottom: 1px solid var(--border-color); width: 100%; box-sizing: border-box; }
.concept-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; overflow: hidden; width: 100%; }
.concept-info strong { font-size: 0.95rem; font-weight: 600; color: var(--heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; line-height: 1.2; }

@media (max-width: 1024px) { .client-container.view-grid .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .client-container.view-grid .client-grid { grid-template-columns: 1fr; }
    .proof-item, .file-item { flex-direction: column; gap: 15px; align-items: flex-start; }
    .file-item .btn { width: 100%; justify-content: center; }
    .client-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .client-item .btn { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   CHAPTER 7. TIJDLIJN & HISTORIE
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 20px; border-left: 2px solid var(--border-color); margin-left: 10px; margin-top: 10px; }
.timeline-event { position: relative; margin-bottom: 25px; }
.timeline-event:last-child { margin-bottom: 0; }
.timeline-icon { position: absolute; left: -29px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-color); border: 4px solid var(--brand-text-color); }
.timeline-content { background: var(--remark-bg); padding: 15px; border-radius: var(--radius-el); font-size: 0.9rem; color: var(--text-main); word-break: break-word; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 5px; font-weight: 500; }
.pin-tag { display: inline-block; width: fit-content; background: var(--text-main); color: var(--card-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; margin-right: 5px; vertical-align: baseline; }
/* --------------------------------------------------------------------------
   CHAPTER 8. LIGHTBOX & ANNOTATIES (PINS)
   -------------------------------------------------------------------------- */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(15,23,42,0.85); display:none; align-items:center; justify-content:center; z-index: 1000; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { opacity: 1; display: flex; }
.modal-overlay.show .lightbox-content-wrapper { transform: scale(1); }
.lightbox-close-btn { position: absolute; top: 20px; right: 30px; background: none; border: none; color: white; cursor: pointer; opacity: 0.7; z-index: 1050; }

.lightbox-content-wrapper { position: relative; display: inline-block; max-width: 90vw; max-height: 90vh; transform: scale(0.95); transition: transform 0.3s; }
.lightbox-content { max-width: 100%; max-height: 90vh; display: block; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.pin-marker { position: absolute; width: 24px; height: 24px; background: var(--danger-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; transform: translate(-50%, -50%); cursor: default; z-index: 1010; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.pin-tooltip { display: none; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--heading-color); color: var(--card-bg); padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; box-shadow: 0 4px 15px rgba(0,0,0,0.15); pointer-events: none; z-index: 1020; }
.pin-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: var(--heading-color) transparent transparent transparent; }
.pin-marker:hover .pin-tooltip { display: block; }

/* --------------------------------------------------------------------------
   CHAPTER 9. HELP & SUPPORT PAGINA
   -------------------------------------------------------------------------- */
.help-header { text-align: center; margin-bottom: 50px; }
.help-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--heading-color); letter-spacing: -1px; margin-bottom: 10px; }
.help-header p { color: var(--text-muted); font-size: 1.1rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.video-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.video-card h3 { font-size: 1rem; color: var(--heading-color); padding: 15px 20px; margin: 0; font-weight: 700; border-bottom: 1px solid var(--border-color); }

.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; cursor: pointer; background: #000; }
.video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; transition: opacity 0.3s; z-index: 2; }
.play-btn { width: 60px; height: 60px; background: var(--brand-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.4); transition: transform 0.2s; color: var(--brand-text-color); }
.video-wrapper:hover .play-btn { transform: scale(1.1); }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 3; }

.faq-section { margin-bottom: 40px; }
.faq-section h2 { font-size: 1.4rem; color: var(--heading-color); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }

.faq-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.faq-question { font-weight: 700; color: var(--text-main); margin-bottom: 10px; font-size: 1.05rem; }
.faq-answer { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.faq-answer a { color: var(--brand-color); text-decoration: none; font-weight: 500; }
.faq-answer a:hover { text-decoration: underline; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; margin-bottom: 15px; }
.step-number { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background-color: var(--brand-color); color: var(--brand-text-color); border-radius: 50%; font-weight: bold; font-size: 0.85rem; margin-right: 15px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   CHAPTER 10. NOTIFICATIES & AUTOCOMPLETE (MISC)
   -------------------------------------------------------------------------- */
#toast-notification {
    visibility: hidden; min-width: 250px; background-color: var(--heading-color); color: var(--card-bg);
    text-align: center; border-radius: 8px; padding: 14px 24px; position: fixed; z-index: 9999;
    left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); font-size: 0.95rem;
    font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2); opacity: 0; transition: all 0.3s ease;
}
#toast-notification.show { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }

.inline-confirm-wrapper { display: none; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--danger-color); font-weight: 600; background: rgba(239, 68, 68, 0.05); padding: 4px 10px; border-radius: 6px; flex-wrap: wrap; }
.icon-btn.confirm-yes { background: var(--danger-color); color: white; width: 28px; height: 28px; box-shadow: 0 2px 4px rgba(239,68,68,0.2); }
.icon-btn.confirm-yes:hover { background: #b91c1c; color: white; }
.icon-btn.confirm-no { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--border-color); width: 28px; height: 28px; }
.icon-btn.confirm-no:hover { background: var(--hover-bg); }

.autocomplete-results { position: absolute; width: 100%; background: var(--card-bg); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 var(--radius-el) var(--radius-el); max-height: 150px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.autocomplete-item { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-main); }
.autocomplete-item:hover { background: var(--hover-bg); }

/* --------------------------------------------------------------------------
   CHAPTER 11. TAKEN & PLANNING
   -------------------------------------------------------------------------- */
.task-grid-container { 
    width: 100%; 
    overflow-x: auto; 
}
.task-grid-row {
    display: grid;
    /* Kolommen: Titel/Desc (flexibel), Klant, Deadline, Behandelaar, Status, Acties */
    grid-template-columns: minmax(300px, 2.5fr) 180px 140px 150px 160px 80px;
    gap: 20px;
    align-items: start;
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}
.task-header {
    background: var(--card-bg);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    align-items: center;
}

.task-quick-add {
    background: rgba(79, 70, 229, 0.02);
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Specifieke formuliervelden in de grid */
.task-quick-add .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-el);
    font-size: 0.9rem;
    background: var(--card-bg);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
    color: var(--text-main);
}

.task-quick-add .form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.task-item:hover { 
    background: var(--hover-bg); 
}

.task-item.is-done { 
    opacity: 0.5; 
    transition: opacity 0.3s;
}

.task-item.is-done .task-title-text { 
    text-decoration: line-through; 
    color: var(--text-muted); 
}

/* Tekst opmaak */
.task-title-text { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--heading-color); 
    margin-bottom: 4px; 
    display: block; 
    line-height: 1.4;
}

.task-desc-text { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
    margin: 0; 
}

/* Dropdown statussen */
.status-select {
    width: 100%; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    font-weight: 600;
    cursor: pointer; 
    border: 1px solid transparent; 
    outline: none; 
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; 
    background-position: right 0.7rem top 50%; 
    background-size: 0.65rem auto;
    transition: all 0.2s;
}

.status-select:hover { filter: brightness(0.95); }

/* Kleurlabels voor actuele status */
.status-new { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.status-in_production { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.status-waiting_client { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.status-waiting_planning { background: rgba(234, 179, 8, 0.1); color: #ca8a04; }
.status-scheduled { background: rgba(20, 184, 166, 0.1); color: #0d9488; }
.status-shipped { background: rgba(16, 185, 129, 0.1); color: #059669; }
.status-invoiced { background: var(--border-color); color: var(--text-muted); }