﻿.audio-trimmer-page {
    background: #f8f9fc;
    min-height: 100vh;
    padding: 70px 0 90px;
}

.audio-trimmer-hero {
    max-width: 760px;
    margin: 0 auto 40px;
}

    .audio-trimmer-hero .tool-icon {
        width: 68px;
        height: 68px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        background: #4f46e5;
        color: #fff;
        font-size: 28px;
        box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
    }

    .audio-trimmer-hero h1 {
        font-size: 2.5rem;
        font-weight: 750;
        color: #172033;
        margin-bottom: 12px;
    }

    .audio-trimmer-hero p {
        color: #667085;
        font-size: 1.05rem;
        margin-bottom: 22px;
    }

.tool-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

    .tool-features span {
        color: #667085;
        font-size: .86rem;
    }

    .tool-features i {
        color: #4f46e5;
        margin-right: 5px;
    }

.audio-tool-card {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 18px 55px rgba(16, 24, 40, .08);
    border: 1px solid #eaecf0;
}

.audio-upload-area {
    border: 2px dashed #cfd4dc;
    border-radius: 18px;
    padding: 65px 25px;
    text-align: center;
    transition: .2s ease;
    cursor: pointer;
}

    .audio-upload-area:hover,
    .audio-upload-area.drag-over {
        border-color: #4f46e5;
        background: #f8f8ff;
    }

.upload-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 30px;
}

.audio-upload-area h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #172033;
}

.audio-upload-area p {
    color: #667085;
    margin-bottom: 20px;
}

.upload-info {
    margin-top: 16px;
    color: #98a2b3;
    font-size: .82rem;
}

.selected-audio {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fc;
    border-radius: 14px;
    margin-bottom: 22px;
}

.selected-audio-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
}

.selected-audio-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 650;
    color: #172033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #98a2b3;
    font-size: .82rem;
    margin-top: 3px;
}

.audio-player-panel {
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 15px;
    margin-bottom: 30px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
}

.player-time {
    color: #667085;
    font-size: .85rem;
}

.player-progress {
    height: 5px;
    background: #eaecf0;
    border-radius: 5px;
    margin-top: 14px;
    overflow: hidden;
}

.player-progress-fill {
    width: 0;
    height: 100%;
    background: #4f46e5;
    transition: width .08s linear;
}

.trim-section {
    border-top: 1px solid #eaecf0;
    padding-top: 30px;
}

.trim-section-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

    .trim-section-header h4 {
        color: #172033;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .trim-section-header p {
        color: #667085;
        font-size: .88rem;
        margin: 5px 0 0;
    }

.selection-duration {
    text-align: right;
    min-width: 90px;
}

    .selection-duration span {
        display: block;
        color: #98a2b3;
        font-size: .76rem;
    }

    .selection-duration strong {
        color: #4f46e5;
        font-size: 1.15rem;
    }

.trim-range-wrapper {
    padding: 20px 0 10px;
}

.trim-track {
    position: relative;
    height: 48px;
    background: repeating-linear-gradient( 90deg, #e7e9ef 0, #e7e9ef 3px, transparent 3px, transparent 7px );
    border-radius: 10px;
}

.selection-track {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(79, 70, 229, .22);
    border-left: 3px solid #4f46e5;
    border-right: 3px solid #4f46e5;
    pointer-events: none;
}

.trim-range {
    position: absolute;
    left: 0;
    top: 8px;
    width: 100%;
    height: 32px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

    .trim-range::-webkit-slider-thumb {
        appearance: none;
        width: 20px;
        height: 38px;
        border-radius: 8px;
        background: #4f46e5;
        cursor: ew-resize;
        pointer-events: auto;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    }

    .trim-range::-moz-range-thumb {
        width: 20px;
        height: 38px;
        border: 0;
        border-radius: 8px;
        background: #4f46e5;
        cursor: ew-resize;
        pointer-events: auto;
    }

.time-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.time-control label {
    display: block;
    font-size: .82rem;
    font-weight: 650;
    color: #475467;
    margin-bottom: 8px;
}

.time-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    overflow: hidden;
}

.time-adjust {
    width: 44px;
    height: 44px;
    border: 0;
    background: #f8f9fc;
    color: #475467;
}

    .time-adjust:hover {
        background: #eef2ff;
        color: #4f46e5;
    }

.time-input-group input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    text-align: center;
    font-weight: 650;
    color: #172033;
    outline: 0;
}

.trim-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.processing-panel {
    text-align: center;
    padding: 60px 20px;
}

    .processing-panel h4 {
        margin-top: 20px;
        color: #172033;
        font-weight: 700;
    }

    .processing-panel p {
        color: #667085;
    }

.processing-progress {
    max-width: 450px;
    height: 7px;
    margin: 22px auto 0;
    background: #eaecf0;
    border-radius: 10px;
    overflow: hidden;
}

.processing-progress-fill {
    width: 0;
    height: 100%;
    background: #4f46e5;
    transition: width .2s ease;
}

.trim-result {
    margin-top: 30px;
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    background: #f8f9fc;
    border: 1px solid #eaecf0;
}

.result-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 24px;
}

.trim-result h3 {
    font-weight: 700;
    color: #172033;
}

.trim-result p {
    color: #667085;
    margin-bottom: 15px;
}

.result-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    color: #667085;
    font-size: .85rem;
}

.audio-info-section {
    max-width: 950px;
    margin: 40px auto 0;
}

.info-card {
    height: 100%;
    padding: 25px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    text-align: center;
}

    .info-card > i {
        font-size: 24px;
        color: #4f46e5;
        margin-bottom: 15px;
    }

    .info-card h5 {
        color: #172033;
        font-weight: 700;
    }

    .info-card p {
        color: #667085;
        font-size: .86rem;
        line-height: 1.6;
        margin: 0;
    }

@media (max-width: 767.98px) {

    .audio-trimmer-page {
        padding: 45px 0 60px;
    }

    .audio-trimmer-hero h1 {
        font-size: 2rem;
    }

    .audio-tool-card {
        padding: 20px;
        border-radius: 16px;
    }

    .audio-upload-area {
        padding: 45px 15px;
    }

    .trim-section-header {
        flex-direction: column;
    }

    .selection-duration {
        text-align: left;
    }

    .time-controls {
        grid-template-columns: 1fr;
    }

    .trim-actions {
        flex-direction: column;
    }

        .trim-actions .btn {
            width: 100%;
        }
}
