:root {
    --primary: #ffffff;
    --bg-dark: #000000;
    --sidebar-bg: #0a0a0a;
    --topbar-bg: #050505;
    --border: #1a1a1a;
    --border-bright: #333333;
    --text: #e0e0e0;
    --text-dim: #888888;
    --accent: #3b82f6;
    --success: #10b981;
    --sidebar-width: 260px;
}

/* ... (rest of CSS is the same as static/style.css) ... */
/* I'll use the full content from my previous view_file call */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow: hidden;
    line-height: 1.5;
}

/* Layout */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--primary);
    color: var(--bg-dark);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 4px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
}

.top-bar {
    height: 64px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.crumb-dim {
    color: var(--text-dim);
}

.crumb-separator {
    color: var(--border-bright);
}

.user-profile {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.view-container {
    padding: 3rem 2rem;
    width: 100%;
    max-width: 900px;
}

.form-container {
    max-width: 640px;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Form Elements */
.input-group {
    margin-bottom: 2rem;
}

label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0.05em;
}

input,
textarea,
select {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-bright);
    background: #111111;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--border);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Status & Cards */
.status-card {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

#statusMessage {
    color: var(--text);
}

#progressPercent {
    color: var(--text-dim);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.5s ease;
}

.loader-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.output-card {
    margin-top: 3rem;
}

.video-preview video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.actions {
    margin-top: 1.5rem;
}

/* Views-specific */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: var(--text-dim);
    text-align: center;
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* History View */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.history-item {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.2s ease;
}

.history-item:hover {
    border-color: var(--border-bright);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-info strong {
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.history-action {
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    background: var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.history-action:hover {
    background: var(--border-bright);
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}