@keyframes mic-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.mic-active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    animation: mic-pulse 1.5s infinite;
}

.input-listening {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2) !important;
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}
#search-results-box {
    background-color: #1a252f !important; 
    border: 1px solid #2c3e50 !important;
    border-radius: 8px !important;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-result-item {
    display: block !important;
    padding: 14px 20px !important;
    background-color: #1a252f !important; 
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px solid #2c3e50 !important;
    transition: all 0.2s ease-in-out;
}

.search-result-item:last-child {
    border-bottom: none !important;
}

.search-result-item:hover {
    background-color: #111a22 !important; 
    color: #cccccc !important; 
    padding-left: 25px !important; 
}


.search-icon-wrapper {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    font-size: 14px !important;
}

.search-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.search-result-item:hover .search-title {
    color: #cccccc !important; 
}

.search-result-item .fa-chevron-right {
    color: #ffffff !important; 
}
.search-result-item:hover .fa-chevron-right {
    color: #cccccc !important;
}

.no-result-text {
    padding: 20px !important;
    background-color: #1a252f !important;
    color: #ffffff !important; 
    font-size: 14px !important;
}
.no-result-text i {
    margin-right: 8px !important;
    color: #ffc107 !important; 
}
.header_form_container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#header_search-results-box {
    background-color: #1a252f !important; 
    border: 1px solid #2c3e50 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    overflow: hidden;
    
    position: absolute !important; 
    top: 100% !important; 
    left: 0 !important; 
    width: 100% !important; 
    z-index: 9999 !important; 
    max-height: 300px !important; 
    overflow-y: auto !important;
}

.search-result-item {
    display: block !important;
    padding: 14px 20px !important;
    background-color: #1a252f !important; 
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px solid #2c3e50 !important;
    transition: all 0.2s ease-in-out;
}

.search-result-item:last-child {
    border-bottom: none !important;
}

.search-result-item:hover {
    background-color: #111a22 !important; 
    color: #cccccc !important; 
    padding-left: 25px !important; 
}

.search-icon-wrapper {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    font-size: 14px !important;
}

.search-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.search-result-item:hover .search-title {
    color: #cccccc !important; 
}

.search-result-item:hover .fa-chevron-right {
    color: #cccccc !important;
}

.no-result-text {
    padding: 20px !important;
    background-color: #1a252f !important;
    color: #ffffff !important; 
    font-size: 14px !important;
}
.no-result-text i {
    margin-right: 8px !important;
    color: #ffc107 !important; 
}