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

:root {
    /* 颜色系统 - 增强饱和度 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary-color: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --error-color: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.5);
    --warning-color: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.5);
    --info-color: #3b82f6;
    --info-glow: rgba(59, 130, 246, 0.5);

    /* 背景色 - 增加层次感 */
    --bg-primary: #0a0e1a;
    --bg-secondary: #141b2d;
    --bg-tertiary: #1e293b;
    --bg-quaternary: #334155;

    /* 文字色 - 优化对比度 */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-quaternary: #64748b;

    /* 边框色 - 增加层次 */
    --border-color: #1e293b;
    --border-light: #334155;
    --border-lighter: #475569;
    --border-transparent: rgba(99, 102, 241, 0.3);

    /* 阴影系统 - 增加层次感 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.4);

    /* 尺寸系统 - 更精细的间距 */
    --sidebar-width: 320px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    /* 字体系统 - 引入新字体 */
    --font-sans: 'Roboto', 'Noto Sans SC', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;

    /* 动画参数 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow: hidden;
}

/* ==================== 主布局 ==================== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================== 左侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-new-task {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-new-task:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-lg);
}

.btn-new-task:active {
    transform: scale(0.95);
}

.sidebar-actions {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.task-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.filter-btn {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.task-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
}

.task-list-empty p {
    margin-bottom: 8px;
}

.task-list-empty .hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.task-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.task-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

.task-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.task-item-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.task-item-actions {
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-delete-task {
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--error-color);
}

.task-item:hover .btn-delete-task {
    opacity: 1;
}

.btn-delete-task:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error-color);
    transform: scale(1.1);
}

.task-item-status {
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.running {
    background: var(--info-color);
}

.status-dot.completed {
    background: var(--success-color);
    animation: none;
}

.status-dot.failed {
    background: var(--error-color);
    animation: none;
}

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

.task-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.task-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-item-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.task-item-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.task-item-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-clear-all {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ==================== 右侧主内容区 ==================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.main-header {
    height: var(--header-height);
    padding: 20px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.token-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.token-indicator.active {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.token-indicator .icon {
    font-size: 1.2rem;
}

/* ==================== 欢迎页 ==================== */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.welcome-content {
    text-align: center;
    max-width: 500px;
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-primary-large {
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ==================== 任务详情页 ==================== */
.task-detail {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.task-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.task-status-badge.pending {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.task-status-badge.running {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.task-status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.task-status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

/* ==================== 表单区域 ==================== */
.task-form-section,
.task-status-section,
.task-result-section,
.task-error-section,
.task-logs-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-content {
    padding-top: 8px;
}

.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.label-required {
    color: var(--error-color);
    margin-left: 4px;
}

.label-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 4px;
}

/* Token 配置区域 */
.token-config-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.token-config-header {
    margin-bottom: 16px;
}

.token-config-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.token-status {
    float: right;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.token-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Radio 组 */
.radio-group {
    display: grid;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-item:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.radio-item input[type="radio"] {
    margin: 4px 12px 0 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-item input[type="radio"]:checked + .radio-label {
    color: var(--primary-color);
}

.radio-item:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.radio-title {
    font-size: 1rem;
    font-weight: 600;
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* 文件上传区域 */
.file-upload-area {
    position: relative;
    min-height: 150px;
}

.file-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-prompt:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-prompt.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.file-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.file-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.btn-remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.input-with-button {
    position: relative;
    display: flex;
}

.input-with-button input {
    flex: 1;
    padding-right: 48px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.char-count {
    text-align: right;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.form-actions {
    margin-top: 24px;
}

.btn-generate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-generate:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn-generate .btn-icon {
    font-size: 1.3rem;
}

/* ==================== 状态显示区域 ==================== */
.status-content {
    padding-top: 8px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.status-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-container {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

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

/* ==================== 视频结果区域 ==================== */
.result-actions-header {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-icon-action:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-icon-action:active {
    transform: translateY(0) scale(0.95);
}

.video-container {
    width: 100%;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== 错误区域 ==================== */
.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.error-content h3 {
    color: var(--error-color);
    margin-bottom: 12px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn-outline.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-retry {
    padding: 12px 32px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* ==================== 日志区域 ==================== */
.task-logs-section details {
    cursor: pointer;
}

.task-logs-section summary {
    padding: 16px;
    font-weight: 600;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-logs-section summary::-webkit-details-marker {
    display: none;
}

.logs-content {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 8px;
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.log-time {
    color: var(--text-tertiary);
    margin-right: 8px;
}

.log-message {
    color: var(--text-primary);
}

.log-entry.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error-color);
}

.log-entry.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success-color);
}

.log-entry.info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--info-color);
}

.log-entry.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning-color);
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 280px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        width: 100%;
        height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-header {
        padding: 16px 20px;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .task-detail {
        padding: 20px;
    }

    .task-filter {
        grid-template-columns: repeat(4, 1fr);
    }
}
