body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 20px;
}

h2 {
    margin-top: 0;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
    color: #ccc;
}

#main-container {
    display: flex;
    gap: 20px;
}

#left-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#right-panel {
    flex: 3;
}

.panel {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

video, canvas {
    width: 100%;
    background-color: #000;
    border-radius: 4px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

button {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #777;
}

button:disabled {
    background-color: #333;
    cursor: not-allowed;
    color: #888;
}

input[type="file"] {
    margin-bottom: 10px;
}

#clip-range {
    font-size: 14px;
    color: #aaa;
}

#timeline {
    min-height: 100px;
    border: 1px dashed #555;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-clip {
    background-color: #383838;
    padding: 10px;
    border-radius: 4px;
    border-left: 5px solid #4a90e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-clip.effect-reverse {
    border-left-color: #f5a623;
}

.clip-info {
    font-size: 14px;
}

.clip-controls {
    display: flex;
    gap: 5px;
}

.clip-controls button {
    padding: 4px 8px;
    font-size: 12px;
}

#preview-progress-bar {
    flex-grow: 1;
    background-color: #444;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

#preview-progress {
    width: 0%;
    height: 100%;
    background-color: #4a90e2;
}

.effect-buttons button.active {
    background-color: #4a90e2;
}

