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

body {
    background: #0a0a0f;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.daw-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0f0f16;
}

.daw-header {
    background: #15151f;
    border-bottom: 1px solid #252530;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, #ffb347, #ff6d5a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.version {
    background: #2a2a35;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    color: #aaa;
}

.transport {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.transport-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: 0.1s;
}

.transport-btn:hover {
    background: #ff6d5a;
}

.transport-btn.play {
    background: #ff6d5a;
}

.transport-btn.active {
    background: #ff6d5a;
    box-shadow: 0 0 8px rgba(255, 109, 90, 0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a24;
    padding: 4px 12px;
    border-radius: 30px;
}

.volume-control input {
    width: 80px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: 0.1s;
}

.action-btn:hover {
    background: #ff6d5a;
}

.action-btn.fx {
    background: #ff6d5a;
}

.daw-main {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropzone {
    border: 2px dashed #3a3a48;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.1s;
    background: #111118;
}

.dropzone:hover {
    border-color: #ff6d5a;
    background: #181822;
}

.dropzone-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.dropzone-sub {
    font-size: 12px;
    color: #888;
}

.waveform-container {
    background: #111118;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #252530;
}

.waveform-area {
    position: relative;
    background: #0a0a10;
    border-radius: 8px;
    overflow: hidden;
}

#waveformCanvas {
    width: 100%;
    height: 80px;
    display: block;
    background: #0a0a10;
    cursor: pointer;
}

.timeline-playhead {
    z-index: 9999 !important;
}

.timeline-canvas-container canvas {
    pointer-events: auto !important;
}

.playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #3a86ff;
    pointer-events: none;
    transition: left 0.05s linear;
    z-index: 10;
}

.file-info {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    font-family: monospace;
    color: #aaa;
}

.timeline-container {
    background: #111118;
    border-radius: 16px;
    border: 1px solid #252530;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.timeline-ruler {
    background: #0d0d12;
    border-bottom: 1px solid #252530;
    height: 28px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
}

.track-list {
    width: 180px;
    background: #0d0d12;
    border-right: 1px solid #252530;
    flex-shrink: 0;
}

.timeline-canvas-container {
    flex: 1;
    position: relative;
    min-width: 800px;
    background: #0a0a10;
}

#timelineCanvas {
    display: block;
    background: #0a0a10;
    cursor: crosshair;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #3a86ff;
    pointer-events: auto;
    z-index: 20;
    box-shadow: 0 0 4px #3a86ff;
    cursor: ew-resize;
}

.track-strip {
    background: #111118;
    border-bottom: 1px solid #252530;
    padding: 8px 12px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.track-strip:last-child {
    border-bottom: none;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    width: 100%;
    padding: 2px 4px;
    border-radius: 4px;
}

.track-name:focus {
    background: #2a2a35;
    outline: none;
}

.track-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.track-btn {
    background: #2a2a35;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 10px;
    transition: 0.1s;
}

.track-btn:hover {
    background: #ff6d5a;
}

.track-btn.mute.active {
    background: #e74c3c;
}

.track-btn.solo.active {
    background: #f39c12;
}

.track-volume {
    width: 50px;
    height: 3px;
    -webkit-appearance: none;
    background: #3a3a48;
    border-radius: 2px;
}

.track-volume::-webkit-slider-thumb {
    width: 8px;
    height: 8px;
    background: #ff6d5a;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.master-meter-container {
    background: #111118;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid #252530;
}

.master-meter {
    height: 40px;
}

.preset-bar {
    background: #111118;
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.preset-label {
    font-size: 11px;
    color: #ffb347;
    font-weight: 600;
}

.preset-btn {
    background: #2a2a35;
    border: none;
    padding: 5px 14px;
    border-radius: 30px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: 0.1s;
}

.preset-btn:hover {
    background: #ff6d5a;
}

.preset-btn.active {
    background: #ff6d5a;
    box-shadow: 0 0 8px rgba(255, 109, 90, 0.5);
}

.export-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #111118;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid #252530;
}

.export-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 18px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.export-btn:hover {
    background: #ff6d5a;
}

.export-range-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.export-range-btn {
    background: #2a2a35;
    border: none;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 10px;
    cursor: pointer;
}

.export-range-btn:hover {
    background: #ff6d5a;
}

.export-range-controls input {
    background: #1a1a24;
    border: 1px solid #3a3a48;
    border-radius: 6px;
    padding: 4px 8px;
    color: white;
    font-size: 10px;
    width: 65px;
}

.status {
    font-size: 11px;
    color: #aaa;
}

.fx-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: #151520;
    border-left: 1px solid #2a2a35;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fx-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #2a2a35;
    font-weight: bold;
}

.fx-track-selector {
    padding: 10px 16px;
    background: #111118;
    border-bottom: 1px solid #2a2a35;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.fx-track-selector select {
    background: #2a2a35;
    color: white;
    border: 1px solid #3a3a48;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.drawer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid #2a2a35;
    background: #111118;
}

.tab-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    color: #ccc;
    cursor: pointer;
    font-size: 11px;
    transition: 0.1s;
}

.tab-btn:hover, .tab-btn.active {
    background: #ff6d5a;
    color: white;
}

.tab-content {
    display: none;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
}

.tab-content.active {
    display: flex;
}

.fx-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a24;
    padding: 8px 12px;
    border-radius: 10px;
}

.fx-control label {
    width: 90px;
    font-size: 12px;
    color: #ccc;
}

.fx-control input {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #3a3a48;
    border-radius: 2px;
}

.fx-control input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    background: #ff6d5a;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.fx-value {
    background: #0a0a10;
    padding: 3px 6px;
    border-radius: 16px;
    font-size: 10px;
    font-family: monospace;
    min-width: 45px;
    text-align: center;
}

.fx-control button {
    background: #2a2a35;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 10px;
}

.fx-control button:hover {
    background: #ff6d5a;
}

.preset-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #151520;
    border-left: 1px solid #2a2a35;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.2s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.preset-drawer.open {
    right: 0;
}

.preset-manager-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preset-manager-section h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #ffb347;
}

.preset-name-input {
    width: 100%;
    padding: 8px;
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: white;
    margin-bottom: 8px;
    font-size: 12px;
}

.preset-manager-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    margin-right: 6px;
}

.preset-manager-btn:hover {
    background: #ff6d5a;
}

.user-presets-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.preset-item {
    background: #1a1a24;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preset-item-name {
    font-size: 12px;
    cursor: pointer;
}

.preset-item-name:hover {
    color: #ff6d5a;
}

.preset-item-buttons {
    display: flex;
    gap: 4px;
}

.preset-item-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 5px;
}

.preset-item-btn:hover {
    color: #ff6d5a;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #151520;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #2a2a35;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a35;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.export-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.export-setting label {
    font-size: 12px;
    color: #ccc;
    width: 90px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #2a2a35;
}

.export-confirm-btn {
    background: #ff6d5a;
    border: none;
    padding: 6px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

.export-cancel-btn {
    background: #2a2a35;
    border: none;
    padding: 6px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #1a1a24;
}

::-webkit-scrollbar-thumb {
    background: #ff6d5a;
    border-radius: 5px;
}

@media (max-width: 700px) {
    .daw-main {
        padding: 12px;
    }
    .track-list {
        width: 140px;
    }
    .fx-drawer, .preset-drawer {
        width: 100%;
        right: -100%;
    }
    .fx-control {
        flex-wrap: wrap;
    }
    .fx-control label {
        width: 100%;
    }
}



