/* document-upload.css */

#zn-upload-wrap {
    max-width: 640px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

/* ---- Stap-titels ---- */
.zn-step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.zn-hidden { display: none !important; }

/* ---- Drop-zone ---- */
.zn-drop-zone {
    border: 2px dashed #c0c0c0;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}
.zn-drop-zone:hover,
.zn-drop-zone:focus {
    background: #f0f4ff;
    border-color: #4a7cdc;
    outline: none;
}
.zn-drop-zone.zn-drag {
    background: #e8eeff;
    border-color: #4a7cdc;
}
.zn-drop-zone svg {
    color: #888;
    display: block;
    margin: 0 auto 0.75rem;
}
.zn-drop-label {
    margin: 0 0 0.25rem;
    font-weight: 500;
}
.zn-link {
    color: #4a7cdc;
    text-decoration: underline;
    cursor: pointer;
}
.zn-drop-sub {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* ---- Bestandenlijst ---- */
.zn-file-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}
.zn-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 6px;
}
.zn-file-ext {
    background: #e8eeff;
    color: #2d5bbf;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.zn-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.zn-file-info strong {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zn-file-info small {
    font-size: 11px;
    color: #888;
}
.zn-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.1s, color 0.1s;
}
.zn-remove-btn:hover {
    background: #fff0f0;
    color: #c0392b;
}

/* ---- Formuliervelden ---- */
.zn-field {
    margin-bottom: 1rem;
}
.zn-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}
.zn-req {
    color: #c0392b;
    margin-left: 2px;
}
.zn-field input[type="text"],
.zn-field input[type="date"],
.zn-field select,
.zn-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.zn-field input:focus,
.zn-field select:focus,
.zn-field textarea:focus {
    outline: none;
    border-color: #4a7cdc;
    box-shadow: 0 0 0 3px rgba(74,124,220,0.15);
}
.zn-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}
.zn-field-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.zn-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media ( max-width: 480px ) {
    .zn-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Knoppen ---- */
.zn-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
}
.zn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, opacity 0.15s;
}
.zn-btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.zn-btn-primary:hover:not(:disabled) { background: #333; }
.zn-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.zn-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border-color: #d0d0d0;
}
.zn-btn-secondary:hover { background: #f5f5f5; }
#zn-next-btn,
#zn-submit-btn,
#zn-reset-btn {
    margin-top: 1rem;
}

/* ---- Voortgang ---- */
.zn-progress-wrap {
    margin: 1.25rem 0;
}
.zn-progress-bar {
    height: 6px;
    background: #e5e5e5;
    border-radius: 99px;
    overflow: hidden;
}
.zn-progress-fill {
    height: 100%;
    background: #4a7cdc;
    border-radius: 99px;
    transition: width 0.35s ease;
}
.zn-progress-label {
    font-size: 13px;
    color: #666;
    margin: 6px 0 0;
}

/* ---- Resultatenlijst ---- */
.zn-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.zn-result-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}
.zn-result-success {
    background: #f0faf4;
    border: 1px solid #a8ddb8;
}
.zn-result-error {
    background: #fff5f5;
    border: 1px solid #f5b8b8;
}
.zn-result-icon {
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.zn-result-success .zn-result-icon { color: #27ae60; }
.zn-result-error   .zn-result-icon { color: #c0392b; }
.zn-result-name {
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}
.zn-result-msg {
    color: #555;
}
.zn-result-msg a {
    color: #4a7cdc;
}

/* ---- Inline foutmelding ---- */
.zn-inline-error {
    background: #fff5f5;
    border: 1px solid #f5b8b8;
    border-radius: 6px;
    color: #c0392b;
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

/* ---- Notice (niet ingelogd) ---- */
.zn-notice {
    padding: 12px 16px;
    background: #fffbe6;
    border: 1px solid #ffe066;
    border-radius: 6px;
    font-size: 14px;
}

/* ---- Stap 0: documentenoverzicht ---- */
.zn-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}
.zn-step-header .zn-step-title {
    margin: 0;
}

.zn-docs-status {
    font-size: 14px;
    color: #666;
    padding: 0.5rem 0;
}

/* ---- Documententabel ---- */
.zn-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 1rem;
}
.zn-docs-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    padding: 0 10px 8px;
    border-bottom: 1px solid #e5e5e5;
}
.zn-docs-table tbody tr {
    transition: background 0.15s, opacity 0.35s;
}
.zn-docs-table tbody tr:hover {
    background: #fafafa;
}
.zn-docs-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #333;
}
.zn-doc-link {
    color: #4a7cdc;
    text-decoration: none;
    font-weight: 500;
}
.zn-doc-link:hover {
    text-decoration: underline;
}

/* ---- Acties in de tabel ---- */
.zn-td-actions {
    white-space: nowrap;
    text-align: right;
    width: 1%;
}
.zn-delete-btn {
    background: none;
    border: 1px solid #e0c0c0;
    border-radius: 5px;
    color: #c0392b;
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.zn-delete-btn:hover {
    background: #fff0f0;
    border-color: #c0392b;
}

/* ---- Inline bevestiging ---- */
.zn-confirm-text {
    font-size: 12px;
    color: #555;
    margin-right: 6px;
}
.zn-btn-confirm-yes,
.zn-btn-confirm-no {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid;
    transition: background 0.1s;
}
.zn-btn-confirm-yes {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
    margin-right: 4px;
}
.zn-btn-confirm-yes:hover { background: #a93226; }
.zn-btn-confirm-no {
    background: #fff;
    color: #555;
    border-color: #d0d0d0;
}
.zn-btn-confirm-no:hover { background: #f5f5f5; }

.zn-deleting {
    font-size: 12px;
    color: #888;
    font-style: italic;
}
.zn-delete-error {
    font-size: 12px;
    color: #c0392b;
}

/* ---- Rij-verwijder animatie ---- */
.zn-row-removed {
    opacity: 0;
    pointer-events: none;
}

/* ---- Responsive tabel ---- */
@media ( max-width: 560px ) {
    .zn-docs-table thead { display: none; }
    .zn-docs-table tbody td {
        display: block;
        padding: 4px 10px;
    }
    .zn-docs-table tbody td:first-child { padding-top: 10px; }
    .zn-docs-table tbody td:last-child  { padding-bottom: 10px; }
    .zn-docs-table tbody tr {
        border-bottom: 1px solid #e5e5e5;
        display: block;
        margin-bottom: 4px;
    }
    .zn-td-actions { text-align: left; }
}
