/* ══════════════════════════════════════════════════════════ */
/* Dokuman Test Modal                                        */
/* Base modal/btn classes are in site.css                     */
/* ══════════════════════════════════════════════════════════ */

.dt-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}
@media (max-width: 640px) {
    .dt-grid { grid-template-columns: 1fr; }
}

.dt-info { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.dt-info-header { display: flex; align-items: center; gap: 14px; }
.dt-icon-box {
    width: 56px; height: 56px; flex-shrink: 0;
    background: var(--color-primary-50, #f5f3ff);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.dt-info-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; }
.dt-info-desc { font-size: 14px; color: #64748b; line-height: 1.7; margin: 0; }

.dt-checklist { display: flex; flex-direction: column; gap: 8px; }
.dt-check-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #334155;
}
.dt-info-notice {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    font-size: 12px; color: #92400e; line-height: 1.5;
}

.dt-upload { display: flex; flex-direction: column; }
.dt-upload-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 20px; display: flex; flex-direction: column; gap: 0;
}
.dt-result-divider { height: 1px; background: #e2e8f0; margin: 12px 0; }

.dt-file-list { display: flex; flex-direction: column; gap: 6px; }
.dt-file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; background: white; border-radius: 8px;
    border: 1px solid #e2e8f0; font-size: 12px;
}
.dt-file-item-name {
    display: flex; align-items: center; gap: 8px;
    color: #334155; font-weight: 500; min-width: 0;
}
.dt-file-item-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-file-item-info { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #64748b; }
.dt-file-item-info strong { color: #1e293b; }
.dt-result-total { font-weight: 600; }

.dt-drop-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 28px 20px;
    border: 2px dashed #cbd5e1; border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 180px;
}
.dt-drop-zone:hover,
.dt-drop-zone.dragover { border-color: var(--color-primary-400, #a78bfa); background: var(--color-primary-50, #f5f3ff); }
.dt-drop-text { font-size: 14px; font-weight: 600; color: #334155; margin: 0; }
.dt-drop-hint { font-size: 12px; color: #94a3b8; margin: 0; }

.dt-result { flex-direction: column; gap: 8px; }
.dt-result:not(.hidden) { display: flex; }
.dt-result-loading { align-items: center; gap: 10px; padding: 16px; color: #64748b; font-size: 14px; }
.dt-result-loading:not(.hidden) { display: flex; }
.dt-spinner {
    width: 20px; height: 20px;
    border: 2.5px solid #e2e8f0; border-top-color: var(--color-primary-600, #7c3aed);
    border-radius: 50%; animation: dtSpin 0.7s linear infinite;
}
@keyframes dtSpin { to { transform: rotate(360deg); } }

.dt-result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px;
    background: #f8fafc; border-radius: 8px;
    font-size: 13px; color: #475569;
}
.dt-result-row strong { color: #1e293b; }

.dt-result-badge {
    align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
}
.dt-result-badge:not(.hidden) { display: flex; }
#dtResultContent:not(.hidden) { display: flex; flex-direction: column; gap: 8px; }
.dt-badge-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dt-badge-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

@media (max-width: 640px) {
    .modal-footer { flex-direction: column; align-items: stretch; }
    .dt-footer-right { justify-content: flex-end; }
}

/* ══════════════════════════════════════════════════════════ */
/* Dark Mode                                                  */
/* ══════════════════════════════════════════════════════════ */
.dark .modal-overlay { background: rgba(0, 0, 0, 0.7); }
.dark .modal-container { background: #1e293b; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

.dark .modal-header { background: #0f172a; border-bottom-color: #334155; }
.dark .modal-title { color: #f1f5f9; }

.dark .modal-close { color: #94a3b8; }
.dark .modal-close:hover { background: #334155; color: #f87171; }

.dark .modal-body { background: #1e293b; }

.dark .modal-footer { background: #0f172a; border-top-color: #334155; }

.dark .btn-secondary { background: #334155; color: #f1f5f9; border-color: #475569; }
.dark .btn-secondary:hover:not(:disabled) { background: #475569; border-color: #64748b; }

/* Info section */
.dark .dt-info-title { color: #f1f5f9; }
.dark .dt-info-desc { color: #94a3b8; }
.dark .dt-icon-box { background: rgba(124, 58, 237, 0.15); }
.dark .dt-check-item { color: #cbd5e1; }
.dark .dt-info-notice { background: rgba(251, 191, 36, 0.1); border-color: #92400e; color: #fbbf24; }

/* Upload card & drop zone */
.dark .dt-upload-card { background: #0f172a; border-color: #334155; }
.dark .dt-drop-zone { background: #1e293b; border-color: #475569; }
.dark .dt-drop-zone:hover,
.dark .dt-drop-zone.dragover { border-color: var(--color-primary-400, #a78bfa); background: rgba(124, 58, 237, 0.1); }
.dark .dt-drop-text { color: #f1f5f9; }
.dark .dt-drop-hint { color: #64748b; }

/* Result section */
.dark .dt-result-divider { background: #334155; }
.dark .dt-result-loading { color: #94a3b8; }
.dark .dt-spinner { border-color: #334155; border-top-color: var(--color-primary-600, #7c3aed); }

.dark .dt-result-row { background: #0f172a; color: #94a3b8; }
.dark .dt-result-row strong { color: #f1f5f9; }

/* File list items */
.dark .dt-file-item { background: #1e293b; border-color: #334155; }
.dark .dt-file-item-name { color: #f1f5f9; }
.dark .dt-file-item-info { color: #64748b; }
.dark .dt-file-item-info strong { color: #f1f5f9; }

/* Badges */
.dark .dt-badge-success { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; border-color: #065f46; }
.dark .dt-badge-warning { background: rgba(251, 146, 60, 0.1); color: #fdba74; border-color: #9a3412; }

/* Footer checkboxes */
.dark .dt-checkbox-label { color: #94a3b8; }
