:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
}

.upload-section {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.upload-section:hover,
.upload-section.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-section.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.upload-placeholder .icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-placeholder p {
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-placeholder span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.options-section h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    height: 100%;
    transition: all 0.2s ease;
}

.radio-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 1px var(--primary);
}

.label-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.label-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.actions {
    margin-top: 40px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-message {
    margin-top: 24px;
    text-align: center;
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    padding: 24px;
    border-radius: 12px;
}

.success-box p {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-download {
    display: inline-block;
    padding: 12px 24px;
    background: var(--success);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-download:hover {
    opacity: 0.9;
}

.error {
    color: var(--error);
}

.info {
    color: var(--primary);
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.link-logout {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
    opacity: 0.7;
}

.link-logout:hover {
    color: var(--error);
    opacity: 1;
    text-decoration: underline;
}