.tool-audio-trimmer {
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.tool-audio-trimmer .audio-trimmer-wrapper {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    border-left: 4px solid #22C55E;
}

.tool-audio-trimmer .audio-trimmer-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22C55E 0%, #1F2937 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.tool-audio-trimmer .trim-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
}

.tool-audio-trimmer .trim-dropzone.is-over {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.08);
}

.tool-audio-trimmer .trim-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tool-audio-trimmer .trim-dropzone-icon {
    font-size: 2rem;
    color: #22C55E;
    margin-bottom: 0.65rem;
    display: block;
}

.trim-wave-wrap {
    position: relative;
    height: 140px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111827;
    touch-action: none;
    user-select: none;
}

.trim-wave-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.trim-shade {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: none;
}

.trim-shade-l {
    left: 0;
}

.trim-shade-r {
    right: 0;
}

.trim-sel {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px solid #22C55E;
    border-right: 2px solid #22C55E;
    box-sizing: border-box;
}

.trim-handle {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 48px;
    margin-top: -24px;
    background: #22C55E;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: ew-resize;
    z-index: 2;
}

.trim-handle-l {
    left: -8px;
}

.trim-handle-r {
    right: -8px;
}

.trim-times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: end;
}

.trim-times-mid {
    font-weight: 700;
    color: #1F2937;
    padding-bottom: 0.55rem;
    text-align: center;
    min-width: 4.5rem;
}

.tool-audio-trimmer .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
}

.tool-audio-trimmer .form-control:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.tool-audio-trimmer .btn-trim-go {
    background: #22C55E;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.15rem;
}

.tool-audio-trimmer .btn-trim-go:hover,
.tool-audio-trimmer .btn-trim-go:focus {
    background: #16a34a;
    color: #fff !important;
}

.tool-audio-trimmer .btn-trim-preview,
.tool-audio-trimmer .btn-trim-clear {
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1F2937 !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
}

.tool-audio-trimmer .btn-trim-preview:hover,
.tool-audio-trimmer .btn-trim-preview:focus,
.tool-audio-trimmer .btn-trim-clear:hover,
.tool-audio-trimmer .btn-trim-clear:focus {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #1F2937 !important;
}

@media (max-width: 575.98px) {
    .tool-audio-trimmer .btn-trim-go,
    .tool-audio-trimmer .btn-trim-preview,
    .tool-audio-trimmer .btn-trim-clear {
        width: 100%;
    }
}
