body { font-family: 'Inter', system-ui, sans-serif; }
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #14B8A6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #14B8A6;
    background: rgba(20, 184, 166, 0.05);
}

.popup-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(15, 23, 42, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.popup-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}
.popup-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.popup-body { padding: 22px; }
.popup-footer {
    padding: 14px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex; justify-content: flex-end; gap: 8px;
}

.label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.input-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.input-field:focus { outline: none; border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }

.btn-primary {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer;
    transition: transform .12s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 184, 166, 0.35); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-secondary {
    background: #f1f5f9; color: #334155;
    padding: 10px 16px; border-radius: 10px; font-weight: 600;
    border: 1px solid #e2e8f0; cursor: pointer;
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-danger {
    background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca;
    padding: 8px 14px; border-radius: 9px; font-weight: 600; cursor: pointer;
    font-size: 0.88rem;
}
.btn-danger:hover { background: #fecaca; }

.btn-ghost {
    color: #475569; padding: 6px 10px; border-radius: 8px; cursor: pointer;
    background: transparent; border: none; font-size: 0.88rem;
}
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }

.copy-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f0fdfa; color: #0f766e;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid #99f6e4;
}

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 10px;
    background: #0f172a; color: #fff;
    font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    z-index: 100;
    animation: toastIn .2s ease;
}
.toast.toast-error { background: #b91c1c; }
.toast.toast-success { background: #0d9488; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.file-icon-cell {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.row-hover:hover { background: #f8fafc; }
