:root {
    --bg-color: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-muted: #8b8f98;
    --accent: #6b4cff;
    --accent-hover: #8066ff;
    --error: #ff4c4c;
    --success: #00e676;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at top right, rgba(107, 76, 255, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(107, 76, 255, 0.05), transparent 40%);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.drop-area {
    border: 2px dashed var(--card-border);
    border-radius: 16px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.drop-area.highlight {
    border-color: var(--accent);
    background: rgba(107, 76, 255, 0.05);
}

input[type="file"] {
    display: none;
}

.button, .btn-download, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    border: none;
    width: 100%;
}

.button:hover, .btn-download:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button:active, .btn-download:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    margin-top: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.icon {
    width: 20px;
    height: 20px;
}

.drop-text {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-fill.processing {
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #a28bff 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

.status-text, .error-text, .success-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.error-text {
    color: var(--error);
}

.success-text {
    color: var(--success);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

footer {
    margin-top: 32px;
}

footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
