/* Aura Vision Studio CSS */
/* Modern, mystical design with gradient effects */

:root {
    --primary-color: #6d28d9;
    --secondary-color: #8b5cf6;
    --accent-color: #a78bfa;
    --dark-bg: #0f172a;
    --light-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6d28d9, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --glow-color: rgba(139, 92, 246, 0.5);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

body.editor-mode {
    overflow: hidden;
}

/* Header Styles */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
}

nav a.active {
    background: var(--gradient-primary);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(109, 40, 217, 0.1), transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6d28d9, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--glow-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-color);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.5);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.service-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    background: var(--light-bg);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    background: rgba(109, 40, 217, 0.1);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Scroll Animation (for test.html feature/service cards) */
.feature-card,
.service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate-in,
.service-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--glow-color);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* =============================================
   VIDEO EDITOR UI STYLES
   ============================================= */

/* Utility */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.video-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.film-reel {
    display: flex;
    gap: 0.5rem;
}

.film-reel i {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: spin 3s linear infinite;
}

.film-reel i:nth-child(2) {
    animation-direction: reverse;
}

.ai-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.progress-bar .progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: loadProgress 2.5s ease forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 35%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.loading-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.loading-stats .stat {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.loading-stats .stat i {
    color: var(--accent-color);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* App Navigation */
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    height: 56px;
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.nav-brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-subtitle {
    font-weight: 400;
    opacity: 0.7;
}

.nav-controls {
    display: flex;
    gap: 0.25rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.transport-controls {
    display: flex;
    gap: 0.25rem;
}

.transport-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.transport-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

.transport-btn#play:hover {
    background: var(--primary-color);
    color: white;
}

.transport-btn#record {
    color: #ef4444;
}

.transport-btn#record:hover {
    background: rgba(239, 68, 68, 0.2);
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-display,
.resolution-display,
.fps-display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-display i,
.resolution-display i,
.fps-display i {
    color: var(--accent-color);
    font-size: 0.7rem;
}

.timeline-controls select {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
}

.timeline-controls select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-quick-controls {
    display: flex;
    gap: 0.4rem;
}

.ai-quick-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.ai-quick-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.user-info {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 0.5rem;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-role {
    display: block;
    color: var(--accent-color);
    font-size: 0.7rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-light);
}

/* Main Workspace Layout */
.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebars */
.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid rgba(139, 92, 246, 0.1);
}

.sidebar-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.sidebar-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h3 i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* Import Options */
.import-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.import-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.import-option i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.import-option:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* Media Library */
.media-library {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.media-item i {
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

.media-item.video i { color: #60a5fa; }
.media-item.audio i { color: #34d399; }
.media-item.image i { color: #f59e0b; }
.media-item.text i { color: #f472b6; }

.media-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

/* AI Controls */
.ai-controls {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ai-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.ai-btn i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}

.ai-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* AI Chat */
.ai-chat {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.ai-chat-header {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-messages {
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.ai-message {
    display: flex;
    gap: 0.5rem;
}

.ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}

.message-content {
    background: rgba(139, 92, 246, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 0 8px 8px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.user-message-bubble {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px 0 8px 8px;
    font-size: 0.75rem;
    margin-left: auto;
    max-width: 80%;
}

.ai-chat-input {
    display: flex;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.ai-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-chat-input input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.ai-chat-input button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ai-chat-input button:hover {
    color: var(--secondary-color);
}

/* Center Workspace */
.workspace-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 18, 32, 0.8);
}

/* Preview Monitor */
.preview-monitor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.preview-header h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-header h3 i {
    color: var(--accent-color);
}

.preview-controls {
    display: flex;
    gap: 0.25rem;
}

.preview-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-light);
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.video-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.video-placeholder i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.video-placeholder p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.scrubber-bar {
    flex: 1;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.scrubber {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 0 8px var(--glow-color);
}

.preview-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--glow-color);
}

/* Timeline Area */
.timeline-area {
    height: 240px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
}

.timeline-header {
    display: flex;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.track-headers {
    width: 140px;
    flex-shrink: 0;
}

.track-header {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.track-header i {
    color: var(--accent-color);
    font-size: 0.65rem;
}

.timeline-ruler {
    flex: 1;
    height: 24px;
    background: rgba(139, 92, 246, 0.05);
    position: relative;
}

.ruler-markers {
    display: flex;
    height: 100%;
}

.timeline-tracks {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.track {
    display: flex;
    height: 40px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.track-controls {
    width: 140px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.track-mute,
.track-lock,
.track-solo {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.track-mute:hover,
.track-lock:hover,
.track-solo:hover {
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
}

.track-opacity,
.track-volume {
    width: 50px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.track-opacity::-webkit-slider-thumb,
.track-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.track-clips {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Clips */
.video-clip,
.audio-clip,
.title-clip,
.effect-clip {
    position: absolute;
    top: 4px;
    height: 32px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.video-clip {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0.15));
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.audio-clip {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.3), rgba(52, 211, 153, 0.15));
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.title-clip {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(244, 114, 182, 0.15));
    border: 1px solid rgba(244, 114, 182, 0.4);
}

.effect-clip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.clip-content {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    font-size: 0.65rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
}

.clip-content i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.video-clip:hover,
.audio-clip:hover,
.title-clip:hover,
.effect-clip:hover {
    filter: brightness(1.3);
}

/* Playhead */
.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
}

.playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ef4444;
}

/* Right Sidebar - Effect Controls */
.effect-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.effect-param {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.effect-param label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.effect-param input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.effect-param input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 6px var(--glow-color);
}

/* Effects Library */
.effects-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.effect-category h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.effect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.effect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.effect-item i {
    font-size: 1rem;
    color: var(--accent-color);
}

.effect-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

/* AI Analysis */
.ai-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-meter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analysis-meter label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.meter-bar {
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.analysis-meter span {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-align: right;
}

.analysis-suggestions h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.analysis-suggestions ul {
    list-style: none;
    padding: 0;
}

.analysis-suggestions li {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.analysis-suggestions li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 0.6rem;
}

/* App Footer */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    margin-top: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recording-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.record-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.record-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #ef4444;
}

.recording-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: blink 1s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.input-sources {
    display: flex;
    gap: 0.5rem;
}

.input-sources select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.input-sources select option {
    background: var(--dark-bg);
}

.footer-center {
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
}

.ai-generation h4 {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-gen-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.ai-gen-controls input[type="text"] {
    flex: 1;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-gen-controls input[type="text"]::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.ai-gen-controls input[type="text"]:focus {
    border-color: var(--accent-color);
}

.ai-gen-controls select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.ai-gen-controls select option {
    background: var(--dark-bg);
}

.ai-gen-controls .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-stats .stat i {
    color: var(--accent-color);
    font-size: 0.65rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--light-bg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.modal-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.modal-header h3 i {
    color: var(--accent-color);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

/* AI Modal Options */
.ai-gen-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-option {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-option:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.ai-option i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.ai-option h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.ai-option p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ai-option .btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
}

/* AI Advanced Settings */
.ai-advanced {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding-top: 1.25rem;
}

.ai-advanced h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ai-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-settings .setting {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ai-settings .setting label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ai-settings .setting select,
.ai-settings .setting input[type="text"] {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.ai-settings .setting select option {
    background: var(--dark-bg);
}

.ai-settings .setting input[type="text"]:focus,
.ai-settings .setting select:focus {
    border-color: var(--accent-color);
}

/* YouTube Import Modal */
.youtube-import {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.youtube-import input[type="text"] {
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.youtube-import input[type="text"]:focus {
    border-color: var(--accent-color);
}

.youtube-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-info {
    display: flex;
    gap: 1rem;
}

.video-info img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.video-details h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.video-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.youtube-import .import-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.youtube-import .import-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.youtube-import .import-options input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quality-selector select {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-light);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    outline: none;
}

.quality-selector select option {
    background: var(--dark-bg);
}

/* Notifications Container */
.notifications-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Responsive for video editor */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .left-sidebar {
        display: none;
    }

    .nav-center {
        display: none;
    }

    .footer-center {
        display: none;
    }

    .ai-gen-options {
        grid-template-columns: 1fr;
    }

    .ai-settings {
        grid-template-columns: 1fr;
    }
}