body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 95vw;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
}

.container {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
}

.upload-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.upload-area.compact {
    padding: 12px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: auto;
}

.upload-area.compact .upload-text {
    font-size: 14px;
    margin: 0;
    flex: 1;
    text-align: center;
}

.upload-area.compact .upload-btn {
    display: none;
}

.click-to-browse {
    color: inherit;
    cursor: default;
    transition: all 0.2s ease;
}

.upload-area.compact .click-to-browse {
    color: #4CAF50;
    cursor: pointer;
    text-decoration: underline;
}

.upload-area.compact .click-to-browse:hover {
    color: #66BB6A;
    text-decoration-color: #66BB6A;
}

input[type="file"] {
    display: none;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #45a049;
}

.sample-link {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #aaa;
}

.sample-link .click-to-browse {
    color: #4CAF50;
    cursor: pointer;
    text-decoration: underline;
}

.sample-link .click-to-browse:hover {
    color: #66BB6A;
    text-decoration-color: #66BB6A;
}

.upload-area.compact .sample-link {
    display: none;
}

/* Export Popup Styles */
.export-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.export-popup {
    background: #2d2d2d;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid #4CAF50;
    animation: popup-in 0.3s ease-out;
}

@keyframes popup-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.export-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #444;
}

.export-popup-header h3 {
    margin: 0;
    color: #4CAF50;
    font-size: 18px;
    font-weight: 600;
}

.export-popup-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.export-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.export-popup-content {
    padding: 24px;
}

.section-label {
    display: block;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.format-section, .bitrate-section {
    margin-bottom: 24px;
}

.format-options, .bitrate-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-option, .bitrate-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.format-option:hover, .bitrate-option:hover {
    background: #3a3a3a;
    border-color: #4CAF50;
}

.format-option input[type="radio"], .bitrate-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #4CAF50;
}

.format-option input[type="radio"]:checked ~ .format-label,
.bitrate-option input[type="radio"]:checked ~ .bitrate-label {
    color: #fff;
}

.format-option input[type="radio"]:checked,
.bitrate-option input[type="radio"]:checked {
    background: rgba(76, 175, 80, 0.15);
}

/* Selected option styling - fallback for browsers without :has() support */
.format-option.selected, .bitrate-option.selected {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.format-label, .bitrate-label {
    display: flex;
    flex-direction: column;
    color: #ccc;
    transition: color 0.2s ease;
}

.format-label strong, .bitrate-label strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.format-label small, .bitrate-label small {
    font-size: 12px;
    opacity: 0.8;
}

.export-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #444;
}

.export-popup-footer .btn {
    min-width: 80px;
}

.waveform-container {
    margin: 20px 0;
    background: #333;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.waveform {
    height: 300px;
    background: #444;
    border-radius: 4px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: crosshair;
}

.waveform canvas {
    width: 100%;
    height: 100%;
}

/* Scrollbar styling for waveform container */
.waveform::-webkit-scrollbar {
    height: 14px;
}

.waveform::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 7px;
    border: 1px solid #333;
    margin: 0 4px; /* Add some margin to match container border radius */
}

.waveform::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 7px;
    border: 1px solid #2d2d2d;
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.3);
}

.waveform::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #45a049, #66BB6A);
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.5);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.waveform::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #388E3C, #4CAF50);
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.7);
}

.waveform::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Alternative styling for dynamic scrollbar class */
.styled-scrollbar::-webkit-scrollbar {
    height: 14px !important;
}

.styled-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 7px !important;
    border: 1px solid #333 !important;
    margin: 0 4px !important;
}

.styled-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4CAF50, #45a049) !important;
    border-radius: 7px !important;
    border: 1px solid #2d2d2d !important;
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.3) !important;
}

.styled-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #45a049, #66BB6A) !important;
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.5) !important;
}

.styled-scrollbar::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #388E3C, #4CAF50) !important;
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.7) !important;
}

.styled-scrollbar::-webkit-scrollbar-corner {
    background: #1a1a1a !important;
}

.selection {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
    pointer-events: none;
}

.selection.resizable {
    pointer-events: auto;
}

.selection-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(76, 175, 80, 0.8);
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.selection-resize-handle:hover {
    background: rgba(76, 175, 80, 1);
    width: 6px;
}

.selection-resize-handle.left {
    left: -2px;
}

.selection-resize-handle.left:hover {
    left: -3px;
}

.selection-resize-handle.right {
    right: -2px;
}

.selection-resize-handle.right:hover {
    right: -3px;
}

.selection.show-handles .selection-resize-handle {
    opacity: 1;
}

.chunk-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chunk-overlay.selected {
    background: rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
    opacity: 1;
}

.chunk-overlay.hovered {
    opacity: 1;
}

/* Waveform Loading Overlay */
.waveform-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loading-stage {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
    text-shadow: 
        0 0 8px rgba(76, 175, 80, 0.8),
        0 0 16px rgba(76, 175, 80, 0.4);
    letter-spacing: 0.5px;
}

.loading-percentage {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #66BB6A;
    text-shadow: 
        0 0 10px rgba(102, 187, 106, 0.8),
        0 0 20px rgba(102, 187, 106, 0.4);
    letter-spacing: 1px;
}




.progress {
    margin-top: 10px;
    height: 6px;
    background: #555;
    border-radius: 3px;
    overflow: hidden;
    display: none;
    position: relative;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 
        0 0 8px rgba(76, 175, 80, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #4CAF50);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 
        0 0 10px rgba(76, 175, 80, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(255, 255, 255, 0.3) 4px,
        rgba(255, 255, 255, 0.3) 8px
    );
    animation: progress-stripes 1s linear infinite;
}

/* Show animation even at 0% to indicate loading */
.progress-bar[style*="width: 0%"]::before,
.progress-bar[style*="width: 1%"]::before {
    background: repeating-linear-gradient(
        45deg,
        rgba(76, 175, 80, 0.3),
        rgba(76, 175, 80, 0.3) 4px,
        rgba(255, 255, 255, 0.3) 4px,
        rgba(255, 255, 255, 0.3) 8px
    );
    right: -100%;
}

@keyframes progress-stripes {
    0% { transform: translateX(-16px); }
    100% { transform: translateX(0); }
}

.control-panel {
    margin: 15px 0;
    padding: 40px 12px;
    background: #2a2a2a;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    overflow: visible;
}

.zoom-controls-strip {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.03);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(2px);
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
}

.zoom-controls-strip .left-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}


.zoom-controls-strip .right-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.control-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.control-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-weight: 500;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.8));
    color: #4CAF50;
    box-shadow: 
        0 0 6px rgba(76, 175, 80, 0.2),
        inset 0 1px 2px rgba(76, 175, 80, 0.1);
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-buttons .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    text-shadow: none;
}

.control-buttons .btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.05));
    border-color: #66BB6A;
    color: #66BB6A;
    box-shadow: 
        0 0 10px rgba(76, 175, 80, 0.4),
        inset 0 1px 2px rgba(76, 175, 80, 0.2);
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.8);
}

.control-buttons .btn:active:not(:disabled) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(69, 160, 73, 0.1));
    transform: scale(0.98);
    box-shadow: 
        0 0 6px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(76, 175, 80, 0.3);
}

/* Custom hover labels */
.control-buttons .btn {
    position: relative;
}

.control-buttons .btn::after {
    content: attr(data-hover-text);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.control-buttons .btn:hover:not(:disabled)::after {
    opacity: 1;
}

/* Fix pause button alignment */
.control-buttons .btn[data-pause="true"] {
    padding-top: 6px;
    padding-bottom: 0;
}

.play-progress-position {
    margin-left: 8px;
    padding: 3px 6px;
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #FF5722;
    min-width: 60px;
    text-align: center;
    display: none;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.hover-position {
    margin-left: 6px;
    padding: 3px 6px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #FFC107;
    min-width: 60px;
    text-align: center;
    display: none;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.selection-duration {
    margin-left: 6px;
    padding: 3px 6px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #4CAF50;
    min-width: 60px;
    text-align: center;
    display: none;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

/* Digital Time Display - Green Theme */
.zoom-controls-strip .digital-time-display {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border: 1px solid #4CAF50;
    border-radius: 4px;
    padding: 6px 10px 6px 32px;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    text-align: center;
    box-shadow: 
        0 0 12px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(76, 175, 80, 0.1);
    position: relative;
    min-width: 120px;
    margin: 0;
    flex-shrink: 0;
}

.zoom-controls-strip .digital-time-display::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 18px;
    width: 0;
    height: 0;
    border-left: 8px solid #4CAF50;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
    pointer-events: none;
}

.zoom-controls-strip .digital-time-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(76, 175, 80, 0.05) 0%, 
        rgba(76, 175, 80, 0.02) 50%, 
        rgba(76, 175, 80, 0.05) 100%);
    border-radius: 4px;
    pointer-events: none;
}

.zoom-controls-strip .current-time-large {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 
        0 0 8px rgba(76, 175, 80, 0.8),
        0 0 16px rgba(76, 175, 80, 0.4);
    letter-spacing: 0.4px;
    line-height: 1;
    margin-bottom: 1px;
}

.zoom-controls-strip .total-duration-small {
    font-size: 11px;
    color: #81C784;
    text-shadow: 0 0 4px rgba(129, 199, 132, 0.6);
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.zoom-controls-strip .mouse-position-time {
    font-size: 11px;
    color: #81C784;
    text-shadow: 0 0 4px rgba(129, 199, 132, 0.6);
    letter-spacing: 0.3px;
    margin-top: 1px;
    opacity: 0.9;
    font-weight: 500;
}

/* Selection Info Block */
.selection-info-block {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border: 1px solid #4CAF50;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    box-shadow: 
        0 0 10px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(76, 175, 80, 0.1);
    position: relative;
    min-width: 280px;
    margin: 0;
    flex-shrink: 0;
}

.selection-info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(76, 175, 80, 0.05) 0%, 
        rgba(76, 175, 80, 0.02) 50%, 
        rgba(76, 175, 80, 0.05) 100%);
    border-radius: 3px;
    pointer-events: none;
}

.selection-label {
    color: #4CAF50;
    font-size: 11px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    text-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
    position: relative;
    z-index: 1;
}

.selection-details {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.selection-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.selection-field label {
    color: #81C784;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.selection-field span {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.6);
    min-width: 55px;
    text-align: center;
}

.clear-selection-btn {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 3px;
    color: #81C784;
    font-size: 8px;
    font-weight: 500;
    padding: 2px 6px;
    cursor: pointer;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    transition: all 0.2s ease;
    text-transform: lowercase;
    margin-left: 4px;
}

.clear-selection-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Zero-crossing snap toggle */
.zero-crossing-snap-block {
    margin-top: 8px;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #81C784;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #4CAF50;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 3px;
    background: rgba(76, 175, 80, 0.1);
    margin-right: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    color: #4CAF50;
    font-size: 10px;
    font-weight: bold;
}

.checkbox-text {
    text-transform: lowercase;
}

/* Old zoom-controls overlay styles removed - now using zoom-controls-strip */

.zoom-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.zoom-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #4CAF50;
    border-radius: 3px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.8));
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    flex-shrink: 0;
    box-shadow: 
        0 0 8px rgba(76, 175, 80, 0.2),
        inset 0 1px 2px rgba(76, 175, 80, 0.1);
    text-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(69, 160, 73, 0.1));
    border-color: #66BB6A;
    color: #66BB6A;
    box-shadow: 
        0 0 12px rgba(76, 175, 80, 0.4),
        inset 0 1px 2px rgba(76, 175, 80, 0.2);
    text-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

.zoom-btn:active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(69, 160, 73, 0.2));
    border-color: #4CAF50;
    transform: scale(0.95);
    box-shadow: 
        0 0 8px rgba(76, 175, 80, 0.3),
        inset 0 1px 2px rgba(76, 175, 80, 0.3);
}

.zoom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(13, 13, 13, 0.4));
    border-color: #444;
    color: #666;
    box-shadow: none;
    text-shadow: none;
}

.waveform-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.waveform-scroll-container::-webkit-scrollbar {
    height: 14px;
}

.waveform-scroll-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 7px;
    border: 1px solid #333;
}

.waveform-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 7px;
    border: 1px solid #2d2d2d;
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.3);
}

.waveform-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #45a049, #66BB6A);
    box-shadow: inset 0 1px 2px rgba(76, 175, 80, 0.5);
}

.waveform-scroll-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #388E3C, #4CAF50);
}

.virtual-canvas {
    pointer-events: none;
    position: absolute;
    top: 0;
    height: 1px;
}