.upload-zone {
    background-color: #f5f5f5;
    border: 2px dashed #d8d8d8;
    border-radius: 12px;
    height: auto;
    padding: 50px 25px;
    text-align: center;
    cursor: pointer;
}

.upload-zone #file-input {
    display: none;
}

.upload-zone:hover {
    border: 2px dashed #ef7d00;
    background-color: #f0ece9;
}

.upload-zone .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-zone .content .upload-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.upload-zone .content .upload-desc {
    font-size: 15px;
    color: rgba(26, 26, 46, 0.6);
    margin: 0;
}

.upload-zone .content .upload-formats {
    font-size: 14px;
    color: rgba(26, 26, 46, 0.4);
    opacity: 0.75;
    margin: 0;
}

.upload-zone .content .upload-formats-recommended {
    font-size: 18px;
    font-weight: 500;
    color: #ea580c;
    margin: 0;
}

.upload-zone .content .upload-formats-recommended strong {
    color: rgba(26, 26, 46, 0.6);
}

.upload-zone .content .active-preset-info {
    display: inline-flex;
    margin: 4px 0;
    padding: 8px 16px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 20px;
    background: rgba(129, 140, 248, 0.08);
    align-items: center;
    font-size: 13px;
    color: rgb(249, 115, 22);
    font-weight: 500;
}

.upload-zone .content .btn-upload-file {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: rgba(234, 88, 12, 0.3) 0px 4px 15px;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 12px;
    border: none;
}

.global-drag-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 8px dashed #f97316;
}

.global-drag-overlay.active {
    opacity: 1;
    visibility: visible;
}

.global-drag-overlay .global-drag-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-drag-overlay .global-drag-content .hover-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    opacity: 0.1;
    animation: pulse 1.5s ease-in-out infinite;
    margin: 0 auto 20px;
}

.global-drag-overlay .global-drag-content h2 {
    font-size: 40px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 800;
}

.global-drag-overlay .global-drag-content p {
    font-size: 20px;
    color: rgba(26, 26, 46, 0.6);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 245, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.loading-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.10),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 32px 36px;
    width: 420px;
    max-width: calc(100vw - 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: loadingCardIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes loadingCardIn {
    from { transform: translateY(18px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.loading-card-file {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(234,88,12,0.07));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
}

.loading-card-filename {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.loading-card-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f97316, #fb923c, #ea580c);
    background-size: 200% 100%;
    border-radius: 100px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: barGradientMove 2.5s linear infinite;
}

.loading-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    animation: barShimmer 2.2s ease-in-out infinite;
}

@keyframes barGradientMove {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes barShimmer {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(400%); }
}

.loading-bar-pct {
    font-size: 13px;
    font-weight: 700;
    color: #f97316;
    font-variant-numeric: tabular-nums;
    min-width: 3.5ch;
    text-align: right;
}

.loading-card-step {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.4);
    text-align: center;
    min-height: 1.2em;
    transition: opacity 0.15s ease;
}

.files.analysis {
    border: none;
}

.files.analysis table {
    border: 1px solid #ccc;
    border-radius: 12px;
}