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

:root {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #00d9ff;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --success: #00ff88;
    --error: #ff4757;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--card-border);
    cursor: pointer;
    text-align: center;
    padding: 48px 24px;
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-zone h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* File Info */
.file-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.file-icon {
    font-size: 2.5rem;
}

.file-details {
    flex: 1;
}

.file-details h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-details p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--error);
}

/* Language Selection */
.language-section {
    margin-bottom: 24px;
}

.language-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #0099cc 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
    color: #000;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-top: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Progress */
#progress-section h3 {
    margin-bottom: 16px;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Success */
.card.success {
    text-align: center;
    border-color: rgba(0, 255, 136, 0.3);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.card.success h3 {
    color: var(--success);
    margin-bottom: 8px;
}

#download-info {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.translating {
    animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 24px 16px;
    }
}
