:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #334155;
    --danger: #ef4444;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo .accent {
    color: var(--accent);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.upload-zone .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.clickable {
    color: var(--accent);
    text-decoration: underline;
}

.filename {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Settings */
.settings-panel {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.radio-card:hover {
    border-color: var(--text-secondary);
}

.radio-card.active {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.radio-card input {
    display: none;
}

.toggles {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    opacity: 1;
    /* Ensure not blurred */
}

.toggle-custom {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 20px;
    position: relative;
    margin-right: 50px;
    /* Increased from 10px to ~5cm equivalent */
    transition: 0.3s;
}

.toggle-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.toggle-custom {
    background: var(--accent);
}

input:checked+.toggle-custom::after {
    left: 18px;
}

.label-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-left: 0;
    line-height: 1.4;
    opacity: 0.8;
}

.toggles {
    /* Ensure good spacing */
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

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

/* Actions */
.btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.primary:hover {
    background: var(--accent-hover);
}

.btn:disabled {
    background: var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Status */
.status-container {
    margin-top: 20px;
    text-align: center;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--border);
}