/**
 * Stylesheet cho công cụ chuyển đổi Excel ↔ JSON ↔ CSV
 */

/* Thiết kế bảng Excel Preview */
#preview-table th {
    border-right: 1px solid #e2e8f0;
    border-bottom: 2px solid #cbd5e1;
    font-weight: 800;
}

#preview-table td {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    color: #475569;
}

#preview-table tr:last-child td {
    border-bottom: none;
}

#preview-table th:last-child,
#preview-table td:last-child {
    border-right: none;
}

/* Kiểu dáng vùng Drag & Drop */
#dropzone {
    outline: none;
}

/* Thêm hiệu ứng kéo file đè lên */
#dropzone.dragover {
    border-color: #ec4899 !important; /* pink-500 */
    background-color: rgba(253, 242, 248, 0.5) !important; /* pink-50 */
}

/* Nút bấm chuyển đổi chính */
#btn-action-download {
    position: relative;
    overflow: hidden;
}

#btn-action-download::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: all 0.75s ease;
}

#btn-action-download:hover::after {
    left: 150%;
    transition: all 0.75s ease;
}

/* Hoạt ảnh hiện mượt mà (Fade In) */
.animate-fadeIn {
    animation: converterFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes converterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
