@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 30px 25px;
    max-width: 550px;
    width: 100%;
    margin-top: 20px;
}

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

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.logo-icon {
    font-size: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.upload-area {
    border: 3px dashed #c7d2fe;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.upload-area.dragover {
    border-color: #6b5b95;
    background: linear-gradient(180deg, #f0f4ff 0%, #e6ebff 100%);
}

.upload-icon {
    font-size: 56px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.upload-subtext {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 5px;
}

.file-name {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 10px;
    display: inline-block;
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 80%;
}

.file-name.error {
    background: #fee2e2;
    color: #b91c1c;
}

.file-name.success {
    background: #d1fae5;
    color: #059669;
}

.options-section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.checkbox-custom .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: white;
    border: 2px solid #c7d2fe;
    border-radius: 6px;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: #667eea;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.checkbox-content {
    flex: 1;
}

.checkbox-content strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.checkbox-desc {
    font-size: 12px;
    color: #94a3b8;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 6px;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.progress {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    display: none;
    text-align: center;
}

.progress.active {
    display: block;
}

.progress-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 8px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
    display: none;
    text-align: center;
}

.download-section.active {
    display: block;
}

.download-section h2 {
    color: #059669;
    font-size: 18px;
    margin-bottom: 10px;
}

.download-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--success-gradient);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.download-section a:hover {
    transform: translateY(-2px);
}

.error-message {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px;
    color: #b91c1c;
    display: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.error-message.active {
    display: block;
}
