﻿/* برای دکمه ویس رکوردر و کنترل کننده رکوردر صدا در ویور*/
body {
    overflow: hidden
}

/*برای voiceController*/
#voiceController {
    /*    display: flex;*/
    /*            display: none;*/
    width: 400px;
    gap: 10px;
    align-items: center;
    padding: 10px 15px;
    background: rgb(255 255 255 / 20%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    opacity: 1;
    transition: all ease-out 0.75s;
    position: absolute;
    z-index: 9 !important;
    text-align: center;
    min-height: 65px
}

    #voiceController button,
    #voiceController input {
        padding: 5px 15px;
        border: none;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        background: #80808047 !important;
        margin: 4px;
    }

        #voiceController button:hover,
        #voiceController input:hover {
            background: rgba(255, 255, 255, 0.5);
        }
/* پنل شیشه‌ای */
#voiceListPanel {
    background: rgba(255, 255, 255, 0.1); /* شفافیت سبک شیشه‌ای */
    backdrop-filter: blur(10px); /* تارشدن پس‌زمینه */
    -webkit-backdrop-filter: blur(10px); /* برای Safari */
    border: 1px solid rgba(255, 255, 255, 0.3); /* حاشیه شیشه‌ای */
    border-radius: 12px;
    color: #fff;
    padding: 15px;
    width: 260px;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/*        برای استایل اسکرول */
#voiceListPanel {
    overscroll-behavior: contain;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    /* اسکرول بار مدرن */
    scrollbar-width: thin; /* برای فایرفاکس */
    scrollbar-color: rgba(255,255,255,0.4) transparent;
}

    /* Chrome, Safari */
    #voiceListPanel::-webkit-scrollbar {
        width: 6px; /* باریک و مینیمال */
    }

    #voiceListPanel::-webkit-scrollbar-track {
        background: transparent; /* پس‌زمینه مخفی */
        background: rgba(255, 255, 255, 0.1); /* کمی روشن‌تر */
        border-radius: 6px;
    }

    #voiceListPanel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4); /* رنگ نیمه‌شفاف */
        border-radius: 6px; /* گرد کردن */
        backdrop-filter: blur(10px);
    }

        #voiceListPanel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.6); /* موقع هاور کمی پررنگ‌تر */
        }

/* آیتم‌های لیست */
#voiceListUL li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 8px;
}

    /* دکمه‌ها */
    #voiceListUL li button {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        padding: 10px 15px;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
        margin: 3px
    }

        #voiceListUL li button:hover {
            background: rgba(255, 255, 255, 0.3);
            color: #000;
        }

        /* دکمه تایید */
        #voiceListUL li button.confirm {
            background: rgba(0, 255, 0, 0.2);
            border-color: rgba(0, 255, 0, 0.5);
            color: #0f0;
        }

            #voiceListUL li button.confirm:hover {
                background: rgba(0, 255, 0, 0.3);
                color: #000;
            }

        #voiceListUL li button.deleteVoice {
            background: rgba(255, 0, 0, 0.2);
            border-color: rgba(255, 0, 0, 0.5);
            color: #f00;
        }


.record-showMore {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 3px;
    text-align: center;
    background-color: #c9c9c9;
    color: #232323;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid transparent;
    left: 10px;
}

    .record-showMore.active {
        border: 2px solid #f83600;
        color: #f83600;
    }

.record-text {
    padding: 5px;
    direction: rtl;
    margin: 0px;
    font-weight: 600;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: start;
    /*            position: absolute;*/
    /*            top: -31px;*/
    height: auto;
}

    .record-text:hover {
        cursor: pointer;
    }

    .record-text.short {
        text-overflow: ellipsis;
        overflow: hidden;
        width: 90%;
        /*                height: 30px;*/
        white-space: nowrap;
    }

.textformat:not(:last-child) {
    border-bottom: 1px solid #fff08754 !important; /* رنگ و ضخامت دلخواه */
}

.audioRecorder-status {
    direction: rtl;
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    top: 0;
    left: 0;
    border-radius: 10px
}

.audioRecorder-loader {
    transform: rotateZ(45deg);
    display: inline-block;
    perspective: 1000px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    margin-left: 7px;
}

    .audioRecorder-loader:before,
    .audioRecorder-loader:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: inherit;
        height: inherit;
        border-radius: 50%;
        transform: rotateX(70deg);
        animation: 1s spinAudio linear infinite;
    }

    .audioRecorder-loader:after {
        color: #f83600;
        transform: rotateY(70deg);
        animation-delay: .4s;
    }

@keyframes rotateAudio {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spinAudio {
    0%, 100% {
        box-shadow: .6em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: .6em .6em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .6em 0 0px currentcolor;
    }

    37% {
        box-shadow: -.6em .6em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.6em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.6em -.6em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -.6em 0 0 currentcolor;
    }

    87% {
        box-shadow: .6em -.6em 0 0 currentcolor;
    }
}

.audioSec.disable {
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

#visualizer {
    position: absolute;
    top: -67px;
    left: -67px;
    z-index: 1;
    overflow: visible;
}

.record-card:not(:last-child) {
    border-bottom: 1px solid #fff4;
    margin-bottom: 15px;
}

div#timeline {
    position: relative;
    margin: 0 auto;
    width: 92.5%;
}

    div#timeline span {
        color: #b3b3b3;
        font-size: 7px;
        position: absolute;
        top: -10px;
    }

        div#timeline span#current-time {
            left: 0;
        }

        div#timeline span#total-time {
            right: 0;
        }

    div#timeline div.slider {
        background-color: gray;
        border-radius: 2px;
        cursor: pointer;
        height: 2px;
        position: relative;
        width: 100%;
    }

        div#timeline div.slider div.progress {
            background-color: #e74c3c;
            height: 100%;
            pointer-events: none;
            position: absolute;
            width: 0;
        }

            div#timeline div.slider div.progress div.pin {
                background-color: white;
                border-radius: 8px;
                height: 8px;
                position: absolute;
                pointer-events: all;
                right: -5px;
                top: -3px;
                width: 8px;
                -webkit-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.32);
                -moz-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.32);
                box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.32);
                -webkit-transition: transform 0.25s ease;
                -moz-transition: transform 0.25s ease;
                -ms-transition: transform 0.25s ease;
                -o-transition: transform 0.25s ease;
                transition: transform 0.25s ease;
            }

                div#timeline div.slider div.progress div.pin:active {
                    -moz-transform: scale(1.5);
                    -o-transform: scale(1.5);
                    -ms-transform: scale(1.5);
                    -webkit-transform: scale(1.5);
                    transform: scale(1.5);
                }


.time-container {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background-color: #80808047 !important;
    width: fit-content;
    padding: 0px 10px;
    border-radius: 5px;
    width: fit-content;
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    width: 90px;
}

.counterVoiceList {
    position: absolute;
    right: -5px;
    top: -5px;
    background-color: #80808047 !important;
    width: 18px;
    height: 18px;
    border-radius: 15px 15px 15px 0;
    font-size: small;
}

@media (max-width:570px) {
    #voiceController {
        width: 100%;
        left: 0;
        text-align: center;
        left: 0 !important;
    }

    #voiceListPanel {
        width: 100%;
    }
}
