/* ========================================
   zImputados — Modern Minimalist Theme
   ======================================== */

/* --- Base Wrapper --- */
#z-imputados-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
}

#z-imputados-wrapper>.z-section {
    flex: 1;
    min-width: 0;
}

/* --- Section Color Differentiation --- */
#z-imputados-wrapper>.z-section:nth-child(1) {
    background: linear-gradient(160deg, #f5f3ff, #ede9fe);
    border-color: #c4b5fd;
}

#z-imputados-wrapper>.z-section:nth-child(2) {
    background: linear-gradient(160deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
}

/* --- Cards --- */
.z-card {
    background: #ffffff;
    border: 1px solid #e8e8ef;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.z-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* --- Section Header --- */
.z-section-header {
    margin-bottom: 24px;
}

.z-section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.z-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* --- Columns --- */
.z-columns-container {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.z-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z-column label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 8px;
}

.z-column textarea {
    width: 100%;
    resize: vertical;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e8;
    border-radius: 10px;
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #fafafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
    box-sizing: border-box;
}

.z-column textarea::placeholder {
    color: #b0b4c0;
}

.z-column textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}

/* --- Buttons --- */
.z-controls {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.z-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.z-btn-icon {
    font-size: 1rem;
}

.z-btn-primary {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.z-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.z-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

.z-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #e5e7eb;
}

.z-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.z-btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* --- Results --- */
.z-results-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1.5px solid #f0f0f5;
}

.z-result-column {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    background: #fafafc;
    border: 1px solid #ededf3;
}

.z-result-column h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.z-result-success {
    border-left: 3px solid #10b981;
}

.z-result-danger {
    border-left: 3px solid #ef4444;
}

.z-empty-msg {
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* --- Result Header (with copy button) --- */
.z-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.z-result-header h3 {
    margin: 0;
}

.z-btn-copy {
    padding: 5px 14px;
    font-size: 0.75rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.z-btn-copy:hover {
    background: #dcfce7;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.z-btn-copy.z-copied {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* --- List Items --- */
.z-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar styling */
.z-list::-webkit-scrollbar {
    width: 6px;
}

.z-list::-webkit-scrollbar-track {
    background: #f1f1f5;
    border-radius: 3px;
}

.z-list::-webkit-scrollbar-thumb {
    background: #c4c4d0;
    border-radius: 3px;
}

.z-list::-webkit-scrollbar-thumb:hover {
    background: #a0a0b0;
}

.z-list li {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.z-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#z-duplicates-list li {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
}

#z-invalid-list li,
#z-invalid-cuit-list li {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#z-converted-list li {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* --- Conversion Section --- */
.z-conversion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.z-input-area {
    min-width: 0;
}

.z-conversion-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    #z-imputados-wrapper {
        flex-direction: column;
        margin: 16px;
        gap: 20px;
    }

    .z-card {
        padding: 20px;
        border-radius: 12px;
    }

    .z-columns-container {
        flex-direction: column;
    }

    .z-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .z-btn {
        justify-content: center;
    }
}