/* =============================================
   KRANG TRANSCRIBEER TOOL — STYLESHEET
   Kleuren: Blauw #3f829b | Oranje #ea8000
   ============================================= */

:root {
    --blauw: #3f829b;
    --blauw-donker: #2d6a80;
    --blauw-licht: #e8f2f6;
    --blauw-medium: #c5dde6;
    --oranje: #ea8000;
    --oranje-licht: #fff3e0;
    --tekst: #1e2d3a;
    --tekst-zacht: #5a6e7c;
    --tekst-licht: #8fa3af;
    --achtergrond: #f4f7f9;
    --wit: #ffffff;
    --rand: #dde6eb;
    --rand-licht: #eef2f5;
    --gevaar: #c0392b;
    --gevaar-licht: #fdecea;
    --succes: #27ae60;
    --radius: 10px;
    --radius-klein: 6px;
    --schaduw: 0 2px 8px rgba(63, 130, 155, 0.10);
    --schaduw-hover: 0 4px 16px rgba(63, 130, 155, 0.18);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--achtergrond);
    color: var(--tekst);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--blauw); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === HEADER === */
.site-header {
    background: var(--wit);
    border-bottom: 2px solid var(--blauw-licht);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }

.logo-img { height: 44px; width: auto; }

.logo-fallback {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-naam {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blauw);
    letter-spacing: 0.05em;
}
.logo-sub {
    font-size: 0.7rem;
    color: var(--oranje);
    letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-klein);
    color: var(--tekst-zacht);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}
.nav-link:hover { background: var(--blauw-licht); color: var(--blauw); text-decoration: none; }
.nav-link.active { background: var(--blauw-licht); color: var(--blauw); font-weight: 600; }
.nav-uitloggen { color: var(--tekst-licht); font-size: 0.85rem; }
.nav-uitloggen:hover { background: var(--gevaar-licht); color: var(--gevaar); }

/* === LAYOUT === */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { padding: 2rem 0 4rem; }

/* === PAGINA HEADER === */
.pagina-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.pagina-titel { font-size: 1.6rem; font-weight: 700; color: var(--tekst); }
.pagina-subtitel { color: var(--tekst-zacht); margin-top: 0.25rem; font-size: 0.95rem; }

/* === CARDS === */
.card {
    background: var(--wit);
    border-radius: var(--radius);
    box-shadow: var(--schaduw);
    border: 1px solid var(--rand-licht);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--rand-licht);
    background: linear-gradient(to right, var(--blauw-licht), var(--wit));
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-titel {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blauw-donker);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.stap-nummer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blauw);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.card-body { padding: 1.5rem; }

/* === DROPZONE === */
.dropzone {
    border: 2px dashed var(--blauw-medium);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--blauw-licht);
}
.dropzone:hover, .dropzone.drag-over {
    border-color: var(--blauw);
    background: #daeaf1;
}
.dropzone-icoon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dropzone-tekst { font-size: 1rem; font-weight: 500; color: var(--blauw-donker); margin-bottom: 0.25rem; }
.dropzone-subtekst { color: var(--tekst-licht); margin-bottom: 0.75rem; font-size: 0.85rem; }
.dropzone-formaten { margin-top: 0.75rem; font-size: 0.78rem; color: var(--tekst-licht); letter-spacing: 0.05em; }

/* === BESTAND INFO === */
.bestand-info {
    background: var(--blauw-licht);
    border: 1px solid var(--blauw-medium);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.bestand-info-inner { display: flex; align-items: center; gap: 1rem; }
.bestand-icoon { font-size: 1.5rem; flex-shrink: 0; }
.bestand-naam { font-weight: 600; color: var(--tekst); font-size: 0.95rem; }
.bestand-grootte { color: var(--tekst-zacht); font-size: 0.82rem; margin-top: 0.1rem; }
.btn-icoon {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tekst-licht);
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s;
}
.btn-icoon:hover { background: var(--gevaar-licht); color: var(--gevaar); }

/* === FORMULIER === */
.form-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-rij { grid-template-columns: 1fr; } }

.form-groep { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tekst-zacht);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.optioneel {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--tekst-licht);
    font-size: 0.8rem;
}

.form-input {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--rand);
    border-radius: var(--radius-klein);
    font-size: 0.95rem;
    color: var(--tekst);
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--wit);
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: var(--blauw);
    box-shadow: 0 0 0 3px rgba(63, 130, 155, 0.15);
}

/* === MODULE KAARTEN === */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 640px) { .modules-grid { grid-template-columns: 1fr; } }

.module-kaart {
    border: 2px solid var(--rand);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    background: var(--wit);
    display: block;
}
.module-kaart:hover { border-color: var(--blauw-medium); box-shadow: var(--schaduw); }
.module-kaart.geselecteerd { border-color: var(--blauw); background: var(--blauw-licht); }
.module-kaart input[type="checkbox"] { display: none; }

.module-kaart-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

.module-icoon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.module-info { flex: 1; }
.module-naam { display: block; font-weight: 600; font-size: 0.9rem; color: var(--tekst); }
.module-beschrijving { display: block; font-size: 0.8rem; color: var(--tekst-zacht); margin-top: 0.15rem; line-height: 1.4; }

.module-vinkje {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--rand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: all 0.15s;
    background: var(--wit);
}
.module-kaart.geselecteerd .module-vinkje {
    background: var(--blauw);
    border-color: var(--blauw);
    color: white;
}

.module-acties { display: flex; align-items: center; gap: 0.5rem; }
.btn-tekst {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blauw);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
}
.btn-tekst:hover { text-decoration: underline; }
.scheidingsteken { color: var(--tekst-licht); }

/* === KNOPPEN === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-klein);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primair { background: var(--blauw); color: white; }
.btn-primair:hover:not(:disabled) { background: var(--blauw-donker); box-shadow: var(--schaduw-hover); }

.btn-secundair { background: var(--wit); color: var(--blauw); border: 1.5px solid var(--blauw-medium); }
.btn-secundair:hover:not(:disabled) { background: var(--blauw-licht); }

.btn-oranje { background: var(--oranje); color: white; }
.btn-oranje:hover:not(:disabled) { background: #cc7000; box-shadow: 0 4px 12px rgba(234,128,0,0.25); }

.btn-gevaar { background: var(--wit); color: var(--gevaar); border: 1.5px solid #e8c0bc; }
.btn-gevaar:hover:not(:disabled) { background: var(--gevaar-licht); }

.btn-groot { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-volledig { width: 100%; justify-content: center; }
.btn-icoon-links { font-size: 1rem; }

/* === GESPREKTYPE TOGGLE === */
.gesprek-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .gesprek-type-toggle { grid-template-columns: 1fr; } }
.type-kaart { border: 2px solid var(--rand); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.type-kaart:hover { border-color: var(--blauw-medium); box-shadow: var(--schaduw); }
.type-kaart.geselecteerd { border-color: var(--blauw); background: var(--blauw-licht); }
.type-kaart input[type="radio"] { display: none; }
.type-kaart-inner { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; }
.type-icoon { font-size: 1.6rem; flex-shrink: 0; }
.type-info { flex: 1; }
.type-naam { display: block; font-weight: 600; font-size: 0.95rem; color: var(--tekst); }
.type-beschrijving { display: block; font-size: 0.8rem; color: var(--tekst-zacht); margin-top: 0.15rem; }

/* === DEELNEMERS === */
.deelnemer-rij { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.deelnemer-rij .form-input { flex: 1; }
.deelnemer-jij-label { font-size: 0.78rem; color: var(--tekst-licht); white-space: nowrap; padding: 0 0.3rem; }
.btn-deelnemer-verwijder { background: none; border: none; cursor: pointer; color: var(--tekst-licht); font-size: 0.9rem; padding: 0.3rem 0.5rem; border-radius: 4px; transition: color 0.15s, background 0.15s; }
.btn-deelnemer-verwijder:hover { color: #e05050; background: #fef0f0; }
.btn-klein { padding: 0.4rem 0.9rem; font-size: 0.85rem; margin-top: 0.25rem; }

/* === SUBMIT SECTIE === */
.submit-sectie { text-align: center; padding: 1rem 0 0.5rem; }
.submit-info { margin-top: 0.75rem; color: var(--tekst-licht); font-size: 0.83rem; }

/* === VOORTGANG === */
.voortgang-sectie { margin-top: 1.5rem; }

.voortgang-body {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.voortgang-animatie {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--blauw);
    animation: pulse 1.5s ease-in-out infinite;
}

.voortgang-emoji { font-size: 1.8rem; z-index: 1; }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.voortgang-info { flex: 1; }
.voortgang-titel { font-size: 1.05rem; font-weight: 600; color: var(--tekst); margin-bottom: 0.25rem; }
.voortgang-stap { color: var(--tekst-zacht); font-size: 0.9rem; margin-bottom: 0.75rem; }

.voortgang-balk-wrapper { display: flex; align-items: center; gap: 0.75rem; }
.voortgang-balk {
    flex: 1;
    height: 8px;
    background: var(--rand);
    border-radius: 4px;
    overflow: hidden;
}
.voortgang-vul {
    height: 100%;
    background: linear-gradient(to right, var(--blauw), var(--oranje));
    border-radius: 4px;
    transition: width 0.4s ease;
}
.voortgang-pct { font-size: 0.85rem; font-weight: 600; color: var(--blauw); width: 3rem; text-align: right; }

/* === RESULTATEN === */
.resultaten-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.resultaten-titel { font-size: 1.5rem; font-weight: 700; color: var(--tekst); }
.resultaten-meta { color: var(--tekst-zacht); font-size: 0.9rem; margin-top: 0.25rem; }
.resultaten-acties { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }

/* === MODULE RESULTAAT KAARTEN === */
.module-resultaat {
    background: var(--wit);
    border-radius: var(--radius);
    border: 1px solid var(--rand-licht);
    box-shadow: var(--schaduw);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.module-resultaat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(to right, var(--blauw-licht), var(--wit));
    border-bottom: 1px solid var(--rand-licht);
    cursor: pointer;
    user-select: none;
}

.module-resultaat-header:hover { background: linear-gradient(to right, #d5e8f0, var(--wit)); }

.module-resultaat-titel {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blauw-donker);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tekst-licht);
    font-size: 0.9rem;
    transition: transform 0.2s;
    padding: 0.25rem;
}
.module-collapse-btn.open { transform: rotate(180deg); }

.module-resultaat-acties { display: flex; gap: 0.4rem; }

.btn-kopieer {
    background: none;
    border: 1px solid var(--rand);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--tekst-zacht);
    transition: all 0.15s;
    font-family: inherit;
}
.btn-kopieer:hover { background: var(--blauw-licht); border-color: var(--blauw-medium); color: var(--blauw); }
.btn-kopieer.gekopieerd { background: #e8f8ef; border-color: #a8d5b5; color: var(--succes); }

.module-resultaat-body {
    padding: 1.5rem;
    line-height: 1.75;
    color: var(--tekst);
    font-size: 0.93rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.module-resultaat-body.transcriptie {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    background: #f8fafb;
    line-height: 1.8;
}

/* Actiepunten stijl */
.module-resultaat-body .actie-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--rand-licht);
}
.module-resultaat-body .actie-item:last-child { border-bottom: none; }

/* === LOGIN === */
.login-body { background: linear-gradient(135deg, #2d6a80 0%, #3f829b 50%, #5a9fb5 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.login-wrapper { width: 100%; max-width: 420px; padding: 1.5rem; }

.login-card {
    background: var(--wit);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 2.5rem 2rem;
}

.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo-img { height: 56px; width: auto; }
.login-logo-fallback { justify-content: center; flex-direction: column; align-items: center; }

.login-titel { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--tekst); margin-bottom: 0.4rem; }
.login-subtitel { text-align: center; color: var(--tekst-zacht); font-size: 0.9rem; margin-bottom: 1.75rem; }

.login-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* === ARCHIEF === */
.zoek-sectie { padding: 1rem 1.5rem; }
.zoek-wrapper { position: relative; }
.zoek-icoon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; }
.zoek-input {
    width: 100%;
    padding: 0.65rem 0.9rem 0.65rem 2.5rem;
    border: 1.5px solid var(--rand);
    border-radius: var(--radius-klein);
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.zoek-input:focus { outline: none; border-color: var(--blauw); box-shadow: 0 0 0 3px rgba(63,130,155,0.15); }

.gesprekken-lijst { display: flex; flex-direction: column; gap: 0.75rem; }

.gesprek-kaart {
    background: var(--wit);
    border: 1px solid var(--rand-licht);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--schaduw);
    text-decoration: none;
    color: inherit;
}
.gesprek-kaart:hover {
    border-color: var(--blauw-medium);
    box-shadow: var(--schaduw-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.gesprek-kaart-links { flex: 1; min-width: 0; }
.gesprek-kaart-titel { font-weight: 600; font-size: 0.95rem; color: var(--tekst); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gesprek-kaart-meta { font-size: 0.82rem; color: var(--tekst-zacht); margin-top: 0.2rem; }

.gesprek-kaart-rechts { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.gesprek-duur {
    background: var(--blauw-licht);
    color: var(--blauw-donker);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.module-chip {
    background: var(--oranje-licht);
    color: var(--oranje);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.chips-groep { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* === LAAD / LEEG STATES === */
.laad-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--tekst-zacht);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--blauw-medium);
    border-top-color: var(--blauw);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.leeg-bericht {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--tekst-zacht);
}
.leeg-icoon { font-size: 3rem; margin-bottom: 1rem; }
.leeg-bericht h3 { font-size: 1.1rem; color: var(--tekst); margin-bottom: 0.5rem; }
.leeg-bericht p { margin-bottom: 1.5rem; font-size: 0.9rem; }

/* === ALERTS === */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-klein);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.alert-fout { background: var(--gevaar-licht); color: var(--gevaar); border: 1px solid #f5c6c3; }
.alert-succes { background: #e8f8ef; color: var(--succes); border: 1px solid #a8d5b5; }

/* === BREADCRUMB === */
.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb-link { color: var(--tekst-zacht); font-size: 0.9rem; }
.breadcrumb-link:hover { color: var(--blauw); }

/* === PRINT === */
@media print {
    .site-header, .nav, .submit-sectie, .resultaten-acties,
    .btn, .btn-kopieer, .module-resultaat-acties,
    .module-collapse-btn, .breadcrumb { display: none !important; }

    body { background: white; font-size: 11pt; }
    .container { max-width: none; padding: 0; }
    .main-content { padding: 0; }
    .card, .module-resultaat { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }

    .module-resultaat-body { max-height: none !important; }

    .pagina-header::before {
        content: 'KRANG — strategie en concept';
        display: block;
        font-size: 14pt;
        font-weight: bold;
        color: #3f829b;
        margin-bottom: 1rem;
    }
}
