.audio-message {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    min-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 5px;
}

.play-btn {
    --size: 30px;
    border: none;
    background: #25d366;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.pause-btn {
    background: #d33f25;
}

/* Style the progress bar */
.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, #25d366 var(--progress), #ddd var(--progress));
    transition: background 0.1s linear;
}

/* Custom Thumb */
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #25d366;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

/* Firefox */
.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #25d366;
    border-radius: 50%;
    cursor: pointer;
}



.time {
    font-size: 12px;
    color: #075e54;
    margin-left: 8px;
    font-weight: bold;
}