
.voice-visualization {
    height: 120px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.voice-wave {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2px;
}

.wave-bar {
    flex: 1;
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    height: 5%;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.recording .wave-bar {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.3;
    }
}

.voice-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.voice-record-btn,
.voice-stop-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.voice-record-btn {
    background-color: var(--primary-color);
    color: white;
}

.voice-stop-btn {
    background-color: var(--danger-color);
    color: white;
}

.voice-record-btn:hover,
.voice-stop-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.voice-record-btn i,
.voice-stop-btn i {
    font-size: 1.2rem;
}

.voice-options {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.voice-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.voice-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* تنسيق زر الميكروفون في حقل الإدخال */
.mic-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 0 10px;
}

.mic-button:hover {
    background-color: var(--input-focus-shadow);
    transform: scale(1.1);
}

/* تنسيق النافذة المنبثقة */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.voice-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

.voice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.voice-modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.close-modal:hover {
    transform: rotate(90deg);
    background-color: var(--input-focus-shadow);
}

/* مؤشر المعالجة */
.voice-processing-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin: 0 auto;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-processing-indicator::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 3px solid white;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}