/**
 * PKPOINT MultiZip Utility - Harmonized Auxiliary Stylesheet
 * Fully aligned with PKPOINT Root Domain Design System
 * Emerald Primary (#059669 / #10b981), Amber/Gold Accents, Slate Surfaces
 */

/* Dragover State on Dropzones */
.dropzone.dragover,
#inspectDropzone.dragover {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.08) !important;
    transform: scale(1.005);
}

/* Tab Switching Fade Animation */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: pkFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pkFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Multipart Part Cards in Modal & Split Results */
.part-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dark .part-item-card,
html.dark .part-item-card {
    background: #0f172a;
    border-color: #1e293b;
}

.part-item-card:hover {
    border-color: #10b981;
}

.part-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.part-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.dark .part-badge,
html.dark .part-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

/* File Name Cell in Queues & Inspect */
.file-name-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}

.file-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-size-cell {
    white-space: nowrap;
    color: #64748b;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dark .file-size-cell,
html.dark .file-size-cell {
    color: #94a3b8;
}

/* Button Classes for Dynamic Elements in JS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.25;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #0f766e);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.dark .btn-secondary,
html.dark .btn-secondary {
    background: #1e293b;
    color: #cbd5e1 !important;
    border-color: #334155;
}

.dark .btn-secondary:hover,
html.dark .btn-secondary:hover {
    background: #334155;
    color: #ffffff !important;
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #dc2626;
}

.dark .btn-danger,
html.dark .btn-danger {
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185 !important;
    border-color: rgba(225, 29, 72, 0.3);
}

.dark .btn-danger:hover,
html.dark .btn-danger:hover {
    background: #e11d48;
    color: #ffffff !important;
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}
