:root {
    /* Color Palette - Premium Dark Theme */
    --bg-base: #000000;
    --bg-grad-1: #000000;
    --bg-grad-2: #000000;
    --primary: #ffffff; /* Minimalist White */
    --primary-hover: #e5e5e5;
    --secondary: #a3a3a3; /* Subtle Gray */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface-glass: rgba(20, 20, 20, 0.7);
    --surface-border: rgba(255, 255, 255, 0.15);
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

/* Typography Utilities */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
.text-gradient {
    color: var(--primary);
}
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.text-center { text-align: center; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    flex: 1;
}

@media (max-width: 768px) {
    .container { flex-direction: column; padding: 1rem; }
}

.hidden { display: none !important; }

/* Buttons & Inputs */
input.glass-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    margin-bottom: 1rem;
}

input.glass-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Auth View */
#auth-view {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}

.auth-switch {
    background: none; border: none; color: var(--secondary); cursor: pointer; text-decoration: underline; margin-top: 1rem;
}

/* Sidebar Profile */
.sidebar {
    width: 300px;
    padding: 2rem;
    height: fit-content;
}

.credit-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    text-align: center;
}
.credit-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dropzone */
.drop-zone {
    padding: 4rem 2rem;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0,0,0,0.1);
}

.drop-zone.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideIn 0.4s ease forwards;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-filename {
    font-weight: 600;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-queued { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.status-processing { background: rgba(59, 130, 246, 0.2); color: var(--secondary); animation: pulse 2s infinite; }
.status-translating { background: rgba(255, 255, 255, 0.2); color: var(--primary); }
.status-completed { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-error { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* Progress Bar */
.progress-container {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s ease;
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Header Navbar */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
}
