/* ===== VARIABLES & BASE STYLES ===== */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-bg: #1e1e1e;
    --darker-bg: #252526;
    --sidebar-bg: #2d2d2d;
    --border-color: #404040;
    --text-light: #cccccc;
    --text-muted: #999999;
}

.navbar-text {
    font-size: xx-small;
    text-align: end;
}
/* ===== GLOBAL STYLES ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main app pages use dark theme */
.video-editor-container,
.manim-container,
.tts-container {
    background: var(--dark-bg);
    color: white;
    min-height: 100vh;
}

/* ===== COMPONENT STYLES ===== */

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.15s ease-in-out;
}

.operation-card {
    transition: all 0.3s ease;
}

.operation-card:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #007acc;
    color: white;
}

.btn-primary:hover {
    background: #005a9e;
}

.btn-secondary {
    background: #404040;
    color: white;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007acc;
    color: #007acc;
}

.btn-outline:hover {
    background: #007acc;
    color: white;
}

.btn-control {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #ccc;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-control:hover {
    background: #37373d;
    border-color: #007acc;
}

/* Progress & Status */
.progress-bar {
    border-radius: 4px;
    width: 100%;
    height: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007acc;
    transition: width 0.3s;
}

.status-badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.gpu-active {
    color: var(--success-color);
}

.gpu-inactive {
    color: var(--danger-color);
}

/* ===== VIDEO EDITOR SPECIFIC STYLES ===== */

/* Editor Layout */
.video-editor-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background: var(--sidebar-bg);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-name-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.project-name-input:focus {
    outline: 1px solid #007acc;
    background: var(--sidebar-bg);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-sidebar {
    width: 300px;
    background: var(--darker-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Tool Panels */
.tool-panel {
    padding: 15px;
}

.tool-section {
    margin-bottom: 25px;
}

.tool-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #007acc;
}

.upload-area.drag-over {
    border-color: #007acc;
    background: rgba(0, 122, 204, 0.1);
}

.upload-area i {
    font-size: 48px;
    color: #666;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 10px 0;
    color: var(--text-muted);
}

/* Media Library */
.media-library {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.media-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: move;
    transition: border-color 0.3s;
}

.media-item:hover {
    border-color: #007acc;
}

.media-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    background: #333;
}

.media-name {
    padding: 5px;
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Text Tools */
.text-tool {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-input,
.font-select {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.color-picker {
    display: flex;
    gap: 10px;
}

.color-picker input[type="color"] {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.text-controls {
    display: flex;
    gap: 5px;
}

/* Stickers */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sticker {
    font-size: 24px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.sticker:hover {
    background: #37373d;
    border-color: #007acc;
}

input[type="range"].property-control {
    padding: 0;
    height: 20px;
    background: transparent;
}

input[type="range"].property-control::-webkit-slider-track {
    background: #404040;
    height: 4px;
    border-radius: 2px;
}

input[type="range"].property-control::-webkit-slider-thumb {
    background: #007acc;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"].property-control::-moz-range-track {
    background: #404040;
    height: 4px;
    border-radius: 2px;
    border: none;
}

input[type="range"].property-control::-moz-range-thumb {
    background: #007acc;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="color"].property-control {
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

select.property-control {
    cursor: pointer;
}

input[type="text"].property-control {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: white;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
}

/* Preview Container */
.preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    min-height: 0;
}

.preview-header {
    background: #2d2d2d;
    padding: 10px 20px;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 15px;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.scrubber {
    flex: 1;
    max-width: 300px;
}

.video-preview {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.preview-placeholder i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

#previewCanvas {
    width: 100% !important;
    height: 100% !important;
    display: none;
    background: #000;
    object-fit: contain; /* Maintain aspect ratio */
}

/* Preview Controls */
.preview-size-toggle,
.preview-ratio-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}

.preview-size-toggle .btn-control,
.preview-ratio-toggle .btn-control {
    background: #404040;
    border: 1px solid #555;
    color: #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

.preview-size-toggle .btn-control:hover,
.preview-ratio-toggle .btn-control:hover {
    background: #4a4a4a;
    border-color: #007acc;
}

.preview-size-toggle .btn-control.active,
.preview-ratio-toggle .btn-control.active {
    background: #007acc;
    border-color: #0098ff;
    color: white;
}

.preview-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.preview-size-indicator {
    font-size: 12px;
    color: var(--text-muted);
    background: #404040;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

#previewQuality {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Timeline */
.timeline-container {
    height: 300px; /* PERBAIKAN: Tinggi timeline diperbesar */
    background: #252526;
    border-top: 1px solid #404040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-track {
    position: relative;
    min-height: 250px; /* PERBAIKAN: Minimum height diperbesar */
    background: #1a1a1a;
    border: 1px solid #404040;
    margin: 10px;
    overflow-x: auto;
    overflow-y: auto; /* PERBAIKAN: Scroll vertikal diaktifkan */
    flex: 1;
    transition: transform 0.3s ease;
}

.timeline-header {
    background: var(--sidebar-bg);
    padding: 5px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track {
    display: flex;
    min-height: 60px;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.track:last-child {
    border-bottom: none;
}

.track-label {
    position: sticky;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: #2d2d2d;
    border-right: 1px solid #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    z-index: 2;
    flex-shrink: 0;
}

.track-content {
    position: relative;
    flex: 1;
    height: 100%;
    min-width: 800px; /* PERBAIKAN: Minimum width untuk konten */
    min-height: 60px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 49px,
        #333 49px,
        #333 50px
    );
    transition: all 0.3s ease;
    overflow: visible;
}

.track-content.drag-over {
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 122, 204, 0.1),
        rgba(0, 122, 204, 0.1) 49px,
        #333 49px,
        #333 50px
    );
    border: 2px dashed #007acc;
}

.timeline-track::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.timeline-track::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 6px;
}

.timeline-track::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 6px;
    border: 2px solid #1e1e1e;
}

.timeline-track::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.timeline-track::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

.track.audio-track .timeline-item {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    height: 40px; /* Lebih pendek dari video track */
}

.track.audio-track .timeline-item .timeline-label {
    font-size: 10px;
}

.track.audio-track .fa-music {
    color: #2d2d2d;
    font-size: 14px;
}

.track.video-track {
    min-height: 70px;
}

.track.overlay-track,
.track.text-track {
    min-height: 50px;
}

.track.audio-track {
    min-height: 45px;
}

/* Sticker emoji in timeline */
.sticker-emoji {
    font-size: 20px;
    margin-right: 5px;
}

.track-content:empty::before {
    content: 'Drag and drop items here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 12px;
    font-style: italic;
    pointer-events: none;
}

.track-content:empty::after {
    content: 'Drop media here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.track:not(:has(.timeline-item)) .track-content:empty::before {
    content: 'Empty track';
}

/* Ensure timeline items are visible */
.timeline-item {
    position: absolute;
    height: 50px;
    margin: 5px 0;
    background: #37373d;
    border: 1px solid #007acc;
    border-radius: 4px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    box-sizing: border-box;
    overflow: hidden;
}

/* Different colors for different types */
.timeline-item.text-item {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.timeline-item.sticker-item {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.timeline-item.audio-item {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.timeline-item:hover {
    background: #4a4a4a;
    border-color: #0098ff;
}

.timeline-item.selected {
    background: #005a9e;
    border-color: #0098ff;
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.5);
}

.timeline-item.media-item {
    background: linear-gradient(135deg, #007acc, #005a9e);
}

.timeline-item.media-item img {
    height: 40px;
    width: 60px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.timeline-item .video-thumbnail-small {
    width: 60px;
    height: 40px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border-radius: 2px;
    flex-shrink: 0;
}

.timeline-item .timeline-label {
    flex: 1;
    font-size: 11px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Timeline Controls */
.timeline-controls {
    display: none;
    position: absolute;
    top: -20px;
    right: 5px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 2px;
    z-index: 6;
}

.timeline-item:hover .timeline-controls {
    display: flex;
}

.btn-timeline {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 3px 5px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 10px;
}

.btn-timeline:hover {
    background: #4a4a4a;
    color: white;
}

/* Time Indicator */
.time-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #007acc;
    z-index: 10;
    pointer-events: none;
}

.time-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #007acc;
    border-radius: 50%;
}

/* Properties Panel */
.properties-panel {
    padding: 15px;
}

.property-section {
    margin-bottom: 25px;
}

.property-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.property-control {
    width: 100%;
    background: #2d2d2d;
    border: 1px solid #404040;
    color: white;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
}

.property-control:focus {
    outline: none;
    border-color: #007acc;
}

.property-value {
    color: #007acc;
    font-weight: bold;
    font-size: 12px;
    float: right;
}

.property-group {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.property-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}

.property-group select,
.property-group input[type="text"],
.property-group input[type="range"],
.property-group input[type="color"] {
    width: 100%;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.property-group input[type="range"] {
    padding: 0;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--sidebar-bg);
    margin: 10% auto;
    padding: 0;
    width: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: var(--darker-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.close {
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

/* Trim Modal */
.trim-modal {
    max-width: 800px;
}

.trim-preview {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.trim-preview video {
    width: 100%;
    max-height: 400px;
}

.trim-controls {
    padding: 20px;
}

.trim-range {
    margin-bottom: 15px;
}

.trim-range label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
}

.trim-range input[type="range"] {
    width: 100%;
}

.trim-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== UTILITY STYLES ===== */

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 60px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.video-thumbnail i {
    font-size: 24px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Duration Label */
.duration-label {
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 3px;
    border-radius: 2px;
}

/* Media State Indicators */
.timeline-item.mirrored::after {
    content: '🔄';
    position: absolute;
    top: 2px;
    left: 5px;
    font-size: 10px;
}

.timeline-item.slow-motion {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.timeline-item.fast-motion {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .editor-layout {
        flex-direction: column;
    }
    
    .editor-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .right-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 1024px) {
    .preview-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-controls {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .preview-settings {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .preview-size-toggle,
    .preview-ratio-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .timeline-track {
        min-height: 150px;
    }
    
    .track {
        height: 50px;
    }
    
    .track-label {
        width: 60px;
        font-size: 10px;
    }
    
    .track-content {
        margin-left: 60px;
    }
    
    .timeline-item {
        height: 40px;
    }
    
    .timeline-item img,
    .timeline-item .video-thumbnail-small {
        width: 40px;
        height: 30px;
    }
    
    .preview-size-toggle .btn-control,
    .preview-ratio-toggle .btn-control {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 35px;
    }
    
    .preview-controls {
        gap: 8px;
    }
}

/* Notification Styles */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2d2d2d;
    border-left: 4px solid #007acc;
    color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification-success { 
    border-left-color: #1dd1a1; 
    background: #2d2d2d;
}

.notification-error { 
    border-left-color: #ff6b6b; 
    background: #2d2d2d;
}

.notification-warning { 
    border-left-color: #feca57; 
    background: #2d2d2d;
}

.notification-info { 
    border-left-color: #007acc; 
    background: #2d2d2d;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Export Success Styles */
.export-success {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    color: #1dd1a1;
    margin-bottom: 15px;
}

.export-success h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.export-success p {
    color: #ccc;
    margin-bottom: 20px;
}

.export-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-actions .btn {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Progress Bar Enhancements */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #404040;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007acc, #1dd1a1);
    transition: width 0.3s ease;
    border-radius: 8px;
}

/* Audio Visualization in Timeline */
.timeline-item.audio-item {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    border-left: 3px solid #ff9ff3;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 20px;
    margin-left: 10px;
}

.wave-bar {
    width: 2px;
    background: #2d2d2d;
    border-radius: 1px;
    transition: height 0.3s ease;
}

/* Volume Control in Properties */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control input[type="range"] {
    flex: 1;
}

.volume-icon {
    color: #007acc;
    width: 20px;
}
