/*B"H*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
}

h1 {
    color: #1a73e8;
    margin-bottom: 1em;
}

#upload-section p {
    margin-bottom: 1em;
    color: #555;
}

#audio-file-input {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.hidden {
    display: none;
}

#trimmer-section {
    margin-top: 2em;
}

#waveform-container {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: #e9ecef;
    border-radius: 8px;
    cursor: ew-resize;
    overflow: hidden;
}

#waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#selection-overlay {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(26, 115, 232, 0.3);
    border-left: 2px solid #1a73e8;
    border-right: 2px solid #1a73e8;
    pointer-events: none;
}

.trim-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 120%;
    background-color: #d32f2f;
    cursor: ew-resize;
    z-index: 10;
}

#start-handle {
    left: 0;
}

#end-handle {
    right: 0;
}

#controls {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

#audio-player {
    width: 100%;
}

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

#zoom-slider {
    width: 200px;
}

.export-controls {
    margin-top: 2em;
}

#export-button {
    background-color: #1a73e8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

#export-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#export-button:hover:not(:disabled) {
    background-color: #1765c6;
}

#format-selection {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

#status-message {
    margin-top: 1em;
    color: #d32f2f;
    min-height: 20px;
}