/* Container */
.avif-app {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 16px;
    color: #111827;
}

/* Layout */
.avif-hero-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.avif-hero-left {
    flex: 1.4;
}
.avif-hero-right {
    flex: 1;
    min-width: 280px;
}

/* Headline */
.avif-hero-left h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    letter-spacing: -0.4px;
}
.avif-hero-left p {
    margin: 0 0 20px 0;
    color: #4b5563;
}

/* Global progress */
.avif-global-progress {
    margin-bottom: 18px;
}
.avif-progress-bar-wrap {
    background: #e5e7eb;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.avif-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #0066ff);
    border-radius: 999px;
    transition: width 0.25s linear;
}
.avif-progress-text {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Drag & drop */
.avif-drop-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    background: #f9fafb;
    cursor: pointer;
}
.avif-drop-area.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}
.avif-drop-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.avif-drop-sub {
    font-size: 13px;
    color: #6b7280;
}
.avif-drop-area input[type="file"] {
    display: none;
}
.avif-drop-area {
    position: relative;
}

.avif-drop-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    display: block;
}


/* File list */
.avif-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.avif-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}
.avif-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.avif-file-status {
    font-size: 12px;
    color: #6b7280;
}

/* Settings card */
.avif-settings-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 18px 16px 18px 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}
.avif-settings-card h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.avif-label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}
.avif-label input[type="number"] {
    width: 100%;
    margin-top: 4px;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
.avif-help {
    margin: 6px 0 12px 0;
    font-size: 12px;
    color: #6b7280;
}

/* Buttons & status */
.avif-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 0;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.avif-btn:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}
.avif-status {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* Responsive */
@media(max-width: 900px) {
    .avif-hero-inner {
        flex-direction: column;
    }
    .avif-hero-right {
        width: 100%;
    }
}
