.voice-modal {
    display: none;
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    z-index: 10000;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

.modal-header {
    background-color: #331a5c;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    min-width: 160px;
}

.selected-filter {
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.recording-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mic-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.outer-circle, .inner-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #331a5c;
    opacity: 0.3;
}

.outer-circle {
    width: 100%;
    height: 100%;
    border-width: 3px;
}

.inner-circle {
    width: 80%;
    height: 80%;
    border-width: 2px;
}

.pulse {
    animation: pulse 2s infinite;
}

.pulse-delayed {
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.3; }
}

.mic-icon {
    background: #331a5c;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.mic-icon:active {
    transform: scale(0.95);
}

.mic-icon.recording {
    background: #e74c3c;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.visualization {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 10px;
}

.bar {
    width: 4px;
    background: #331a5c;
    border-radius: 2px;
    height: 20px;
    transition: height 0.1s;
}

.playback-section {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EFEFEF;
}

.time-display {
    font-size: 0.9rem;
    color: #331a5c;
    font-weight: 500;
    min-width: 50px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    background: #331a5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.action-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.action-btn.playing {
    background: #e74c3c;
}

.vsend-btn {
    background: #331a5c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.send-btn:hover:not(:disabled) {
    background: #49257c;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 20px;
    background: white;
    width: calc(100% - 40px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 2px 5px;
    border-bottom: 1px solid #EFEFEF;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-item.selected {
    background: #EFEFEF;
    color: #331a5c;
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.show {
    display: block;
}

.status-message {
    text-align: center;
    color: #331a5c;
    font-size: 0.9rem;
    margin-top: -10px;
    min-height: 20px;
}

.filter-processing {
    display: none;
    text-align: center;
    padding: 10px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #331a5c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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










.audio-player {
    width: 100%;
    background: #f9f9f9;
    border-radius: 25px;
    margin: 10px 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #331a5c;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    background: #49257c;
}

.progress-container {
    flex-grow: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #331a5c;
    border-radius: 2px;
    width: 0%;
}

.time {
    font-size: 0.8rem;
    color: #777;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.volume-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.volume-slider {
    flex: 1;
    min-width: 80px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.message-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #331a5c;
}

.duration {
    font-size: 0.8rem;
    color: #777;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-new {
    background: #ffebee;
    color: #d32f2f;
}

.badge-popular {
    background: #e8f5e9;
    color: #388e3c;
}

.audio-source {
    display: none;
}

@media (min-width: 768px) {
    .audio-player {
        flex-direction: row;
        align-items: center;
        height: 50px;
        padding: 0 15px;
    }
    
    .volume-controls {
        width: auto;
        justify-content: flex-start;
        margin-left: 10px;
    }
    
    .volume-control {
        max-width: 120px;
    }
}

@media (max-width: 600px) {
    
    .filter-tag {
        align-self: flex-start;
    }
    
    .time {
        display: none;
    }
    
    .volume-controls {
        padding-top: 10px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
}


