        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #1a1a1a;
            color: #ffffff;
            overflow: hidden;
            user-select: none;
        }

        .app-container {
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ===== HEADER ===== */
        .header {
            height: 50px;
            background: linear-gradient(135deg, #2d2d30 0%, #1e1e1e 100%);
            border-bottom: 1px solid #3e3e42;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            z-index: 1000;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            font-size: 18px;
            font-weight: 700;
            color: #569cd6;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-bar {
            display: flex;
            gap: 16px;
        }

        .menu-item {
            padding: 6px 12px;
            color: #cccccc;
            cursor: pointer;
            border-radius: 4px;
            font-size: 13px;
            transition: all 0.2s;
            position: relative;
        }

        .menu-item:hover {
            background: #37373d;
            color: #ffffff;
        }

        .menu-item.active {
            background: #37373d;
            color: #ffffff;
        }

        /* ===== DROPDOWN MENUS ===== */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #2d2d30;
            border: 1px solid #3e3e42;
            border-radius: 4px;
            min-width: 180px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            z-index: 10000;
            display: none;
            padding: 4px 0;
        }

        .dropdown-menu.active {
            display: block;
        }

        .dropdown-item {
            padding: 8px 16px;
            color: #cccccc;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background 0.2s;
        }

        .dropdown-item:hover {
            background: #37373d;
            color: #ffffff;
        }

        .dropdown-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .dropdown-item.disabled:hover {
            background: transparent;
            color: #cccccc;
        }

        .dropdown-separator {
            height: 1px;
            background: #3e3e42;
            margin: 4px 0;
        }

        .header-center {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .transport-controls {
            display: flex;
            gap: 4px;
            background: #2d2d30;
            border-radius: 6px;
            padding: 4px;
        }

        .transport-btn {
            width: 32px;
            height: 32px;
            background: transparent;
            border: none;
            color: #cccccc;
            cursor: pointer;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }

        .transport-btn:hover {
            background: #37373d;
            color: #ffffff;
        }

        .transport-btn.play {
            background: #0e639c;
            color: #ffffff;
        }

        .timecode {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            color: #569cd6;
            background: #2d2d30;
            padding: 8px 12px;
            border-radius: 4px;
            min-width: 120px;
            text-align: center;
        }

        .header-right {
            display: flex;
            gap: 8px;
        }

        .header-btn {
            padding: 6px 12px;
            background: #0e639c;
            border: none;
            color: #ffffff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .header-btn:hover {
            background: #1177bb;
        }

        .header-btn.secondary {
            background: #37373d;
        }

        .header-btn.secondary:hover {
            background: #464647;
        }

        .header-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ===== WORKSPACE ===== */
        .workspace {
            flex: 1;
            display: flex;
            overflow: hidden;
        }

        .sidebar-left {
            width: 200px;
            min-width: 200px;
            max-width: 200px;
            background: #252526;
            border-right: 1px solid #3e3e42;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }

        .sidebar-tabs {
            display: flex;
            background: #2d2d30;
            border-bottom: 1px solid #3e3e42;
        }

        .sidebar-tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            color: #cccccc;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .sidebar-tab.active {
            color: #569cd6;
            border-bottom-color: #569cd6;
            background: #252526;
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
        }

        /* ===== PROJECT PANEL ===== */
        .project-panel {
            padding: 16px;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .panel-title {
            font-size: 14px;
            font-weight: 600;
            color: #cccccc;
        }

        .import-buttons {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .import-btn {
            flex: 1;
            padding: 8px;
            background: #37373d;
            border: none;
            color: #cccccc;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s;
        }

        .import-btn:hover {
            background: #464647;
        }

        .assets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 8px;
        }

        .asset-item {
            aspect-ratio: 1;
            background: #1e1e1e;
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.2s;
        }

        .asset-item:hover {
            border-color: #569cd6;
            transform: scale(1.02);
        }

        .asset-item.selected {
            border-color: #007acc;
            background: #094771;
        }

        .asset-thumb {
            width: 100%;
            height: 70%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #569cd6;
        }

        .asset-thumb img,
        .asset-thumb video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .asset-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            color: #cccccc;
            font-size: 10px;
            padding: 4px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ===== EFFECTS PANEL ===== */
        .effects-panel {
            padding: 16px;
        }

        .effects-category {
            margin-bottom: 16px;
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            color: #cccccc;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 1px solid #3e3e42;
        }

        .category-content {
            padding: 8px 0;
        }

        .effect-item {
            padding: 8px 12px;
            background: #1e1e1e;
            margin-bottom: 4px;
            border-radius: 4px;
            cursor: grab;
            font-size: 12px;
            color: #cccccc;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .effect-item:hover {
            background: #37373d;
        }

        .effect-item:active {
            cursor: grabbing;
        }

        /* Badge d'export */
        .export-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
            margin-left: 8px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Badge pour effets supportés à l'export */
        .effect-item[data-export-supported="true"] .export-badge {
            background: #0e6b0e;
            color: #7ed87e;
        }

        /* Badge pour effets aperçu uniquement */
        .effect-item[data-export-supported="false"] .export-badge.preview-only {
            background: #8b6914;
            color: #ffd966;
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
        }

        .preview-area {
            height: 60%;
            display: flex;
            background: #1e1e1e;
            border-bottom: 1px solid #3e3e42;
        }

        .preview-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #000000;
            position: relative;
        }

        .preview-header {
            height: 40px;
            background: #2d2d30;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            border-bottom: 1px solid #3e3e42;
        }

        .preview-title {
            font-size: 12px;
            color: #cccccc;
            font-weight: 500;
        }

        .preview-controls {
            display: flex;
            gap: 8px;
        }

        .preview-btn {
            padding: 4px 8px;
            background: #37373d;
            border: none;
            color: #cccccc;
            border-radius: 3px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s;
        }

        .preview-btn:hover {
            background: #464647;
        }

        .preview-viewport {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: #000;
            min-height: 200px;
        }

        .preview-video {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            background: #000;
            object-fit: contain;
            display: block;
            transition: filter 0.2s ease;
        }

        /* Canvas overlay pour les effets */
        .effects-canvas {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            background: #000;
            object-fit: contain;
            display: none;
            z-index: 10;
        }

        .effects-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            display: none;
            z-index: 20;
        }

        .effects-indicator.active {
            display: block;
        }

        .preview-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            border: 2px solid #569cd6;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .preview-overlay.active {
            opacity: 1;
        }

        /* ===== CUSTOM VIDEO CONTROLS ===== */
        .custom-video-controls {
            padding: 12px;
            background: #2d2d30;
            border-top: 1px solid #3e3e42;
            display: none;
        }

        .custom-video-controls .controls-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .custom-video-controls .play-controls {
            display: flex;
            gap: 8px;
        }

        .custom-video-controls .preview-btn {
            width: 40px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .custom-video-controls .progress-area {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .custom-video-controls .time-display {
            font-size: 12px;
            color: #cccccc;
            font-family: monospace;
            min-width: 45px;
        }

        .custom-video-controls .progress-bar {
            flex: 1;
            height: 6px;
            background: #1e1e1e;
            border-radius: 3px;
            position: relative;
            cursor: pointer;
        }

        .custom-video-controls .progress-fill {
            height: 100%;
            background: #569cd6;
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s;
        }

        .custom-video-controls .volume-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .custom-video-controls .volume-label {
            font-size: 12px;
            color: #cccccc;
        }

        .custom-video-controls .volume-bar {
            width: 80px;
            height: 6px;
            background: #1e1e1e;
            border-radius: 3px;
            position: relative;
            cursor: pointer;
        }

        .custom-video-controls .volume-fill {
            height: 100%;
            background: #52c41a;
            border-radius: 3px;
            width: 100%;
        }

        /* ===== PROPERTIES PANEL ===== */
        .properties-panel {
            width: 200px;
            min-width: 200px;
            max-width: 200px;
            background: #252526;
            border-left: 1px solid #3e3e42;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }

        .properties-header {
            height: 40px;
            background: #2d2d30;
            display: flex;
            align-items: center;
            padding: 0 16px;
            border-bottom: 1px solid #3e3e42;
        }

        .properties-content {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
        }

        .property-group {
            margin-bottom: 20px;
        }

        .property-group-title {
            font-size: 12px;
            font-weight: 600;
            color: #cccccc;
            margin-bottom: 12px;
            padding-bottom: 4px;
            border-bottom: 1px solid #3e3e42;
        }

        .property-item {
            margin-bottom: 12px;
        }

        .property-label {
            font-size: 11px;
            color: #cccccc;
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .property-value {
            font-size: 10px;
            color: #569cd6;
            font-family: monospace;
        }

        .property-input {
            width: 100%;
            padding: 6px 8px;
            background: #1e1e1e;
            border: 1px solid #3e3e42;
            border-radius: 3px;
            color: #ffffff;
            font-size: 12px;
        }

        .property-input:focus {
            outline: none;
            border-color: #569cd6;
        }

        .property-slider {
            width: 100%;
            height: 6px;
            background: #1e1e1e;
            border-radius: 3px;
            appearance: none;
            outline: none;
            cursor: pointer;
        }

        .property-slider::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #569cd6;
            cursor: pointer;
        }

        .property-slider::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #569cd6;
            cursor: pointer;
            border: none;
        }

        .effect-controls {
            background: #1e1e1e;
            padding: 12px;
            margin: 8px 0;
            border-radius: 4px;
            border-left: 3px solid #569cd6;
        }

        .effect-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .effect-name {
            font-size: 12px;
            font-weight: 500;
            color: #cccccc;
        }

        .effect-toggle {
            display: flex;
            gap: 4px;
        }

        .effect-btn {
            padding: 2px 6px;
            background: #37373d;
            border: none;
            color: #cccccc;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.2s;
        }

        .effect-btn:hover {
            background: #464647;
        }

        .effect-btn.disabled {
            background: #dc2626;
        }

        .effect-btn.remove {
            background: #dc2626;
        }

        .effect-btn.remove:hover {
            background: #ef4444;
        }

        /* ===== TIMELINE ===== */
        .timeline-area {
            height: 40%;
            background: #1e1e1e;
            display: flex;
            flex-direction: column;
        }

        .timeline-header {
            height: 40px;
            background: #2d2d30;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            border-bottom: 1px solid #3e3e42;
        }

        .timeline-tools {
            display: flex;
            gap: 8px;
        }

        .timeline-tool {
            width: 32px;
            height: 24px;
            background: #37373d;
            border: none;
            color: #cccccc;
            border-radius: 3px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: all 0.2s;
        }

        .timeline-tool:hover {
            background: #464647;
        }

        .timeline-tool.active {
            background: #569cd6;
            color: #ffffff;
        }

        .timeline-zoom {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .zoom-slider {
            width: 100px;
            height: 4px;
            background: #37373d;
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .zoom-thumb {
            width: 12px;
            height: 12px;
            background: #569cd6;
            border-radius: 50%;
            position: absolute;
            top: -4px;
            cursor: grab;
        }

        .timeline-content {
            flex: 1;
            display: flex;
        }

        .timeline-tracks {
            width: 200px;
            background: #252526;
            border-right: 1px solid #3e3e42;
            overflow-y: auto;
        }

        .tracks-header {
            height: 40px;
            background: #2d2d30;
            border-bottom: 1px solid #3e3e42;
            display: flex;
            align-items: center;
            padding: 0 8px;
        }

        .tracks-controls {
            display: flex;
            gap: 4px;
        }

        .track-add-btn {
            padding: 4px 8px;
            background: #0e639c;
            border: none;
            color: #ffffff;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .track-add-btn:hover {
            background: #1177bb;
        }

        .track-remove-btn {
            width: 16px;
            height: 16px;
            background: #dc2626;
            border: none;
            color: #ffffff;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.2s;
        }

        .track-remove-btn:hover {
            background: #ef4444;
        }

        .track-header {
            height: 80px;
            display: flex;
            align-items: center;
            padding: 0 8px;
            border-bottom: 1px solid #3e3e42;
            gap: 8px;
        }

        .track-controls {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .track-controls-row {
            display: flex;
            gap: 2px;
        }

        .track-btn {
            width: 18px;
            height: 16px;
            background: #37373d;
            border: none;
            color: #cccccc;
            border-radius: 2px;
            cursor: pointer;
            font-size: 8px;
            transition: all 0.2s;
        }

        .track-btn:hover {
            background: #464647;
        }

        .track-btn.active {
            background: #569cd6;
            color: #ffffff;
        }

        .track-btn.muted {
            background: #ef4444;
        }

        .track-btn.solo {
            background: #f59e0b;
        }

        .track-btn.locked {
            background: #dc2626;
        }

        .track-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .track-name {
            font-size: 12px;
            color: #cccccc;
            font-weight: 500;
        }

        .track-type {
            font-size: 9px;
            color: #808080;
        }

        .track-volume {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .track-volume-label {
            font-size: 8px;
            color: #808080;
            min-width: 20px;
        }

        .track-volume-slider {
            flex: 1;
            height: 4px;
            background: #1e1e1e;
            border-radius: 2px;
            appearance: none;
            outline: none;
            cursor: pointer;
        }

        .track-volume-slider::-webkit-slider-thumb {
            appearance: none;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #569cd6;
            cursor: pointer;
        }

        .track-volume-slider::-moz-range-thumb {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #569cd6;
            cursor: pointer;
            border: none;
        }

        .timeline-zoom {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .zoom-slider {
            width: 100px;
            height: 6px;
            background: #37373d;
            border-radius: 3px;
            position: relative;
            cursor: pointer;
            appearance: none;
            outline: none;
        }

        .zoom-slider::-webkit-slider-thumb {
            appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #569cd6;
            cursor: grab;
        }

        .zoom-slider::-moz-range-thumb {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #569cd6;
            cursor: grab;
            border: none;
        }

        .zoom-slider:active::-webkit-slider-thumb {
            cursor: grabbing;
        }

        .timeline-ruler-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #1a1a1a;
            overflow-x: auto;
            overflow-y: hidden;
        }

        .timeline-ruler {
            height: 40px;
            background: #2d2d30;
            border-bottom: 1px solid #3e3e42;
            position: relative;
            min-width: 2000px;
        }

        .ruler-tick {
            position: absolute;
            top: 0;
            width: 1px;
            height: 100%;
            background: #5a5a5a;
        }

        .ruler-tick.major {
            background: #808080;
        }

        .ruler-label {
            position: absolute;
            top: 8px;
            font-size: 10px;
            color: #cccccc;
            transform: translateX(-50%);
        }

        .playhead {
            position: absolute;
            top: 0;
            width: 2px;
            height: 100%;
            background: #ff6b6b;
            z-index: 1000;
            cursor: ew-resize;
        }

        .playhead::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -6px;
            width: 14px;
            height: 16px;
            background: #ff6b6b;
            clip-path: polygon(50% 100%, 0 0, 100% 0);
        }

        .timeline-tracks-area {
            flex: 1;
            position: relative;
            min-width: 2000px;
        }

        .timeline-track {
            height: 80px;
            border-bottom: 1px solid #3e3e42;
            position: relative;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
        }

        .timeline-track:nth-child(even) {
            background: rgba(255, 255, 255, 0.02);
        }

        .timeline-clip {
            position: absolute;
            height: 60px;
            top: 10px;
            background: linear-gradient(135deg, #569cd6 0%, #007acc 100%);
            border-radius: 4px;
            border: 1px solid #007acc;
            cursor: move;
            display: flex;
            align-items: center;
            padding: 0 8px;
            font-size: 11px;
            color: #ffffff;
            font-weight: 500;
            min-width: 20px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .timeline-clip.audio {
            background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
            border-color: #389e0d;
        }

        .timeline-clip.selected {
            border-color: #ffffff;
            box-shadow: 0 0 0 2px #ffffff;
        }

        .timeline-clip:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        .clip-resize-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 8px;
            cursor: ew-resize;
            background: rgba(255, 255, 255, 0.1);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .clip-resize-handle.left {
            left: 0;
        }

        .clip-resize-handle.right {
            right: 0;
        }

        .timeline-clip:hover .clip-resize-handle {
            opacity: 1;
        }

        /* ===== EFFECTS BAR ===== */
        .clip-effects {
            position: absolute;
            bottom: -2px;
            left: 8px;
            right: 8px;
            height: 4px;
            background: rgba(255, 255, 0, 0.6);
            border-radius: 2px;
            display: none;
        }

        .timeline-clip.has-effects .clip-effects {
            display: block;
        }

        /* ===== MODALS ===== */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #2d2d30;
            border-radius: 8px;
            padding: 24px;
            max-width: 500px;
            width: 90%;
            border: 1px solid #3e3e42;
        }

        .modal-header {
            font-size: 16px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 16px;
        }

        .modal-body {
            margin-bottom: 20px;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .modal-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .modal-btn.primary {
            background: #569cd6;
            color: #ffffff;
        }

        .modal-btn.primary:hover {
            background: #007acc;
        }

        .modal-btn.secondary {
            background: #37373d;
            color: #cccccc;
        }

        .modal-btn.secondary:hover {
            background: #464647;
        }

        /* ===== PROGRESS BAR ===== */
        .progress-container {
            width: 100%;
            height: 8px;
            background: #37373d;
            border-radius: 4px;
            overflow: hidden;
            margin: 16px 0;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #569cd6 0%, #007acc 100%);
            width: 0%;
            transition: width 0.3s;
        }

        .progress-text {
            font-size: 12px;
            color: #cccccc;
            text-align: center;
            margin-top: 8px;
        }

        /* ===== NOTIFICATIONS ===== */
        .notification {
            position: fixed;
            top: 60px;
            right: 20px;
            background: #2d2d30;
            border: 1px solid #3e3e42;
            border-radius: 4px;
            padding: 12px 16px;
            color: #ffffff;
            z-index: 10001;
            animation: slideInRight 0.3s ease-out;
        }

        .notification.success {
            border-left: 4px solid #52c41a;
        }

        .notification.error {
            border-left: 4px solid #ff4d4f;
        }

        .notification.warning {
            border-left: 4px solid #faad14;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* ===== EXPORT OPTIONS ===== */
        .export-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin: 16px 0;
        }

        .export-option {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .export-option label {
            font-size: 12px;
            color: #cccccc;
        }

        .export-option select,
        .export-option input {
            padding: 6px 8px;
            background: #1e1e1e;
            border: 1px solid #3e3e42;
            border-radius: 3px;
            color: #ffffff;
            font-size: 12px;
        }

        /* ===== SCROLLBARS ===== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1e1e1e;
        }

        ::-webkit-scrollbar-thumb {
            background: #37373d;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #464647;
        }

        /* ===== DRAG & DROP ===== */
        .dragging {
            opacity: 0.5;
            z-index: 1000;
        }

        .drop-zone {
            border: 2px dashed #569cd6;
            background: rgba(86, 156, 214, 0.1);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1400px) {
            .sidebar-left {
                width: 250px;
            }

            .properties-panel {
                width: 250px;
            }
        }

        @media (max-width: 1200px) {
            .sidebar-left {
                width: 220px;
            }

            .properties-panel {
                width: 220px;
            }
        }

        @media (max-width: 1000px) {
            .sidebar-left {
                width: 200px;
            }

            .properties-panel {
                width: 200px;
            }
        }

        @media (max-width: 900px) {
            .header {
                flex-wrap: wrap;
                height: auto;
                min-height: 50px;
                padding: 8px 16px;
            }

            .header-center {
                order: 2;
                width: 100%;
                justify-content: center;
                margin-top: 8px;
            }

            .workspace {
                flex-direction: column;
            }

            .sidebar-left,
            .properties-panel {
                width: 100%;
                height: 180px;
                max-height: 180px;
                border: none;
                border-bottom: 1px solid #3e3e42;
                overflow-y: auto;
            }

            .main-content {
                order: -1;
                flex: 1;
            }

            .preview-area {
                height: 250px;
            }

            .timeline-area {
                height: 200px;
            }

            .timeline-tracks {
                width: 150px;
            }
        }

        @media (max-width: 600px) {
            .header-left .menu-bar {
                display: none;
            }

            .sidebar-left,
            .properties-panel {
                height: 150px;
                max-height: 150px;
            }

            .preview-area {
                height: 200px;
            }

            .timeline-area {
                height: 180px;
            }

            .timeline-tracks {
                width: 120px;
            }

            .transport-controls {
                gap: 2px;
                padding: 2px;
            }

            .transport-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            .timecode {
                font-size: 12px;
                padding: 6px 8px;
                min-width: 100px;
            }
        }

        /* Toggle buttons pour masquer les panneaux sur écrans moyens */
        .panel-toggle {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 40px;
            background: #37373d;
            border: none;
            color: #cccccc;
            cursor: pointer;
            font-size: 12px;
            z-index: 1001;
            display: none;
            transition: all 0.2s;
        }

        .panel-toggle:hover {
            background: #569cd6;
        }

        .panel-toggle.left {
            right: -20px;
            border-radius: 0 4px 4px 0;
        }

        .panel-toggle.right {
            left: -20px;
            border-radius: 4px 0 0 4px;
        }

        @media (min-width: 901px) and (max-width: 1200px) {
            .panel-toggle {
                display: block;
            }

            .sidebar-left.collapsed {
                width: 0;
                min-width: 0;
                overflow: hidden;
                border-right: none;
            }

            .properties-panel.collapsed {
                width: 0;
                min-width: 0;
                overflow: hidden;
                border-left: none;
            }
        }

        /* ===== HIDDEN INPUTS ===== */
        input[type="file"] {
            display: none;
        }

        /* ===== FFmpeg Progress Specific ===== */
        .ffmpeg-status {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: #52c41a;
            margin-top: 8px;
            padding: 8px;
            background: #1e1e1e;
            border-radius: 4px;
            max-height: 100px;
            overflow-y: auto;
        }

        /* LOADER OVERLAY */
        .loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 99999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease;
        }

        .loader-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loader-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid #3e3e42;
            border-top: 4px solid #569cd6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loader-text {
            margin-top: 20px;
            color: #569cd6;
            font-size: 16px;
        }

        .loader-subtext {
            margin-top: 8px;
            color: #808080;
            font-size: 12px;
        }

        /* Composite Effects Styles */
        .composite-effect-card {
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .composite-effect-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
        }

        /* Timeline d'effets composés */
        #effectsTimeline {
            position: relative;
        }

        /* Modal pour effets composés */
        #compositeEffectsModal .modal-content,
        #compositeEditorModal .modal-content {
            background: #1e1e1e;
            color: white;
        }

        /* Canvas d'effets */
        #effectsCanvas {
            display: none;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        /* Indicateur d'effet composé sur les clips */
        .timeline-clip.has-composite-effect::after {
            content: '⭐';
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 12px;
            background: rgba(124, 58, 237, 0.9);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }