:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --radius-lg: 14px;
    --radius-md: 8px;
    --shadow-glow: 0 4px 20px -5px rgba(99, 102, 241, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.globe-1 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    top: -50px;
    left: -50px;
}

.globe-2 {
    width: 350px;
    height: 350px;
    background: #ec4899;
    bottom: -100px;
    right: -100px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Compact Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(22, 28, 45, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Glass Cards */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Compact Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.01);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drop-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.drop-zone h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.drop-zone p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px -3px rgba(99, 102, 241, 0.5);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--secondary), #f43f5e);
    color: #fff;
}

.secondary-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.download-pill {
    padding: 3px 8px;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.preview-pill {
    padding: 3px 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}


/* File Selected Info */
.file-info {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-name {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Status Card */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.processing {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-message {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-info {
    text-align: right;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.step-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 6px 8px;
    border-radius: var(--radius-md);
    text-align: center;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.step-item.active {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.step-item.done {
    opacity: 1;
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.step-num {
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Transcript Textarea */
.transcript-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    resize: vertical;
    outline: none;
}

/* Results Grid */
.section-title {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.result-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.flag {
    font-size: 1.3rem;
}

.card-title h3 {
    font-size: 0.85rem;
    line-height: 1.1;
}

.voice-info {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.video-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Login Page Specific Styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 30px 24px 30px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.lock-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.lock-icon-badge .lock-icon {
    font-size: 1.5rem;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-error-msg {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.8rem;
    text-align: center;
}

.login-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 15, 25, 0.6);
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.login-form input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle-password-btn:hover {
    opacity: 1;
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.login-footer {
    margin-top: 24px;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    text-align: center;
}

