:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --dark: #0F172A;
    --text: #F8FAFC;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15) 0%, rgba(15, 23, 42, 1) 50%);
    animation: rotateBg 30s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

header {
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #4F46E5, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header h1 span {
    font-weight: 300;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

header p {
    font-size: 1.1rem;
    color: #94A3B8;
    letter-spacing: 2px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#drop-zone {
    border: 2px dashed rgba(129, 140, 248, 0.4);
    cursor: pointer;
}

#drop-zone:hover, #drop-zone.dragover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.upload-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.upload-content p {
    color: #94A3B8;
    margin-bottom: 1.5rem;
}

button, .btn-primary, .btn-success, .btn-secondary, .btn-action {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-action {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-action:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.btn-success {
    background: var(--secondary);
    color: white;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 100%;
}

.hidden {
    display: none !important;
}

#file-info {
    margin-top: 1.5rem;
    text-align: center;
}

#file-name {
    color: var(--primary-light);
    font-weight: 600;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(129, 140, 248, 0.2);
    border-bottom-color: var(--primary-light);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Language Selectors */
.language-selectors {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.lang-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.lang-group label {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lang-group select {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
    border: 1px solid rgba(129, 140, 248, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-group select:focus, .lang-group select:hover {
    border-color: var(--primary-light);
    background: rgba(30, 41, 59, 0.9);
}

.lang-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    margin-top: 1.2rem;
}

@media (max-width: 600px) {
    .language-selectors {
        flex-direction: column;
    }
    .lang-icon {
        transform: rotate(90deg);
        margin-top: 0;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 2rem;
    color: #64748B;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.support-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #94A3B8;
}

/* ═══ SOCIAL LINKS ═══ */
.social-links { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 20px 0 10px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); transition: all 0.2s; text-decoration: none; }
.social-links a:hover { color: var(--primary); border-color: var(--primary); background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 14px rgba(59, 130, 246, 0.3); }
.social-links a svg { display: block; }
