/*
Theme Name: Swahili Premium Translator
Theme URI: https://example.com/
Author: AI Developer
Description: A premium, glassmorphism-style web application theme for translating books to Swahili. Connects to a Python FastAPI backend.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: swahili-translator
*/

/* --- PREMIUM UI STYLES --- */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --bg-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #1f2937;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.translator-container {
    width: 100%;
    max-width: 650px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

p.subtitle {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #fff;
    border-radius: 15px;
    padding: 40px 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 25px;
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(255,255,255,0.3);
    border-color: var(--primary-color);
}

.upload-area p {
    font-weight: 600;
    margin: 0;
    pointer-events: none;
}

#file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.4);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
}

.settings label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-translate {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: transform 0.2s, background 0.3s;
    width: 100%;
}

.btn-translate:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-translate:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animations and Progress Bar */
.progress-container {
    display: none;
    margin-top: 30px;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.status-text {
    font-weight: 600;
    color: #333;
}

#download-link {
    display: none;
    margin-top: 20px;
    text-decoration: none;
    background: #10B981;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#download-link:hover {
    background: #059669;
}
