/* Ende Video Merger Public - style.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    --oranje: #E8620A;
    --oranje-licht: #f97316;
    --blauw: #0D1B2A;
    --blauw-mid: #1a2f45;
    --blauw-rand: #243650;
    --wit: #ffffff;
    --grijs: #94a3b8;
    --succes: #22c55e;
    --fout: #ef4444;
    --radius: 10px;
}

/* ── LOGIN ─────────────────────────────────────────────────────────────────── */
.evm-login-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}
.evm-login-box {
    background: var(--blauw);
    border: 1px solid var(--blauw-rand);
    border-radius: 14px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(13,27,42,.4);
}
.evm-login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.evm-login-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--wit);
    line-height: 1;
}
.evm-login-sub { font-size: 12px; color: var(--grijs); margin-top: 3px; }
.evm-login-desc { font-size: 14px; color: var(--grijs); margin-bottom: 20px; font-family: 'Source Sans 3', sans-serif; }
.evm-login-field { display: flex; gap: 0; }
.evm-login-input {
    flex: 1;
    background: var(--blauw-mid);
    border: 1px solid var(--blauw-rand);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 11px 14px;
    color: var(--wit);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.evm-login-input:focus { border-color: var(--oranje); }
.evm-login-input::placeholder { color: var(--grijs); opacity: .6; }
.evm-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--oranje);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 11px 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
}
.evm-login-btn:hover { background: var(--oranje-licht); }
.evm-login-btn:disabled { opacity: .6; cursor: not-allowed; }
.evm-login-error {
    margin-top: 12px;
    font-size: 13px;
    color: #fca5a5;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Source Sans 3', sans-serif;
}

/* ── TOOL ──────────────────────────────────────────────────────────────────── */
#evm-public-root {
    font-family: 'Source Sans 3', sans-serif;
    max-width: 820px;
    margin: 0 auto;
    color: var(--wit);
}

.evm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blauw);
    border: 1px solid var(--blauw-rand);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(13,27,42,.18);
}
.evm-logo-hdr { display: flex; align-items: center; gap: 14px; }
.evm-logo-title { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--wit); line-height: 1; }
.evm-logo-sub { font-size: 12px; color: var(--grijs); margin-top: 3px; }
.evm-badge { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; background: rgba(232,98,10,.15); color: var(--oranje); border: 1px solid rgba(232,98,10,.3); border-radius: 20px; padding: 5px 12px; }

.evm-uitleg {
    background: rgba(232,98,10,.06);
    border: 1px solid rgba(232,98,10,.2);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--grijs);
    line-height: 1.6;
}
.evm-uitleg p { margin: 0; }

.evm-step {
    background: var(--blauw);
    border: 1px solid var(--blauw-rand);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(13,27,42,.18);
}
.evm-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.evm-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--oranje); color: #fff; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.evm-step-label { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; color: var(--wit); }
.evm-clip-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--oranje); background: rgba(232,98,10,.12); border: 1px solid rgba(232,98,10,.25); border-radius: 20px; padding: 3px 10px; }
.evm-step-hint { margin-left: auto; font-size: 12px; color: var(--grijs); }

.evm-dropzone {
    border: 2px dashed rgba(232,98,10,.45);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    user-select: none;
}
.evm-dropzone:hover, .evm-dropzone.drag-over { background: rgba(232,98,10,.07); border-color: var(--oranje); }
.evm-drop-text { font-size: 15px; color: var(--wit); margin: 0; line-height: 1.5; }
.evm-drop-text span { color: var(--oranje); text-decoration: underline; }
.evm-drop-hint { font-size: 12px; color: var(--grijs); margin: 0; }

.evm-clip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; margin-top: 14px; }
.evm-clip-thumb { background: var(--blauw-mid); border: 1px solid var(--blauw-rand); border-radius: 8px; overflow: hidden; position: relative; }
.evm-clip-thumb video { width: 100%; height: 90px; object-fit: cover; display: block; }
.evm-thumb-info { padding: 6px 8px; }
.evm-thumb-name { font-size: 11px; color: var(--wit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evm-thumb-dur { font-size: 11px; color: var(--oranje); font-weight: 600; }
.evm-thumb-remove { position: absolute; top: 5px; right: 5px; background: rgba(13,27,42,.8); border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.evm-thumb-remove:hover { background: var(--fout); }

.evm-sortable { display: flex; flex-direction: column; gap: 8px; }
.evm-sort-item { display: flex; align-items: center; gap: 12px; background: var(--blauw-mid); border: 1px solid var(--blauw-rand); border-radius: 8px; padding: 10px 14px; cursor: grab; user-select: none; transition: background .15s, border-color .15s; }
.evm-sort-item.dragging { opacity: .5; border-color: var(--oranje); }
.evm-sort-item.drag-target { border-color: var(--oranje); background: rgba(232,98,10,.08); }
.evm-sort-num { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; color: var(--oranje); width: 22px; text-align: center; }
.evm-sort-name { flex: 1; font-size: 13px; color: var(--wit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evm-sort-dur { font-size: 12px; color: var(--grijs); flex-shrink: 0; }

.evm-merge-info { background: var(--blauw-mid); border: 1px solid var(--blauw-rand); border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.evm-info-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--grijs); }
.evm-info-row strong { color: var(--wit); font-weight: 600; }

.evm-option-block { margin-bottom: 14px; }
.evm-option-label { display: block; font-size: 12px; font-weight: 600; color: var(--grijs); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.evm-filename-row { display: flex; align-items: center; max-width: 380px; }
.evm-filename-input { flex: 1; background: var(--blauw-mid); border: 1px solid var(--blauw-rand); border-right: none; border-radius: 7px 0 0 7px; padding: 10px 14px; color: var(--wit); font-family: 'Source Sans 3', sans-serif; font-size: 14px; outline: none; transition: border-color .2s; }
.evm-filename-input:focus { border-color: var(--oranje); }
.evm-filename-input::placeholder { color: var(--grijs); opacity: .6; }
.evm-filename-ext { background: var(--blauw-rand); border: 1px solid var(--blauw-rand); border-radius: 0 7px 7px 0; padding: 10px 12px; color: var(--grijs); font-size: 13px; font-weight: 600; }

.evm-progress-wrap { margin-bottom: 18px; }
.evm-progress-label { font-size: 13px; color: var(--grijs); margin-bottom: 8px; }
.evm-progress-bar-bg { background: var(--blauw-mid); border-radius: 6px; height: 10px; overflow: hidden; border: 1px solid var(--blauw-rand); }
.evm-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--oranje), var(--oranje-licht)); border-radius: 6px; transition: width .3s ease; }
.evm-progress-pct { font-size: 12px; color: var(--oranje); font-weight: 700; text-align: right; margin-top: 4px; }

.evm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.evm-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .5px; border: none; border-radius: 7px; padding: 11px 22px; cursor: pointer; transition: all .18s; text-decoration: none; }
.evm-btn-merge { background: var(--oranje); color: #fff; }
.evm-btn-merge:hover:not(:disabled) { background: var(--oranje-licht); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,98,10,.4); color: #fff; }
.evm-btn-merge:disabled { opacity: .4; cursor: not-allowed; }
.evm-btn-clear { background: transparent; color: var(--grijs); border: 1px solid var(--blauw-rand); }
.evm-btn-clear:hover { color: var(--fout); border-color: var(--fout); }
.evm-btn-download { background: var(--succes); color: #fff; margin-top: 12px; }
.evm-btn-download:hover { background: #16a34a; color: #fff; }

.evm-result { display: flex; align-items: center; gap: 16px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: 10px; padding: 18px 20px; margin-top: 16px; flex-wrap: wrap; }
.evm-result-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.evm-result-text strong { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; color: var(--succes); }
.evm-result-text span { font-size: 12px; color: var(--grijs); }

.evm-error { display: flex; align-items: flex-start; gap: 10px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: 8px; padding: 14px 16px; margin-top: 16px; font-size: 13px; color: #fca5a5; line-height: 1.5; }

.evm-footer-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--grijs); margin-top: 14px; padding: 0 4px; }

/* BROWSE KNOP IN DROPZONE */
.evm-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--oranje);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    margin-top: 4px;
    transition: background .18s;
    pointer-events: none; /* klik gaat via dropzone zelf */
}
.evm-dropzone:hover .evm-browse-btn {
    background: var(--oranje-licht);
}
