/* Chatbot Popup */
#chatbot-popup {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#chatbot-popup.visible {
    opacity: 1;
    pointer-events: auto;
}
.hidden {
    display: none;
}
/* Chatbot Header */
.chatbot-header {
    background-color: #05b1bd;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.chatbot-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

#close-chatbot {
    position: absolute;
    top: -7px;
    right: 15px;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

/* Chatbot Description */
.chatbot-description {
    font-size: 16px;
    color: #444;
    text-align: center;
    margin: 20px 0;
}

/* Chatbot Form */
.chatbot-form label {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    display: block;
    margin-bottom: 0px;
}

.chatbot-form select {
    width: 100%;
    padding: 10px;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.chatbot-form select:hover,
.chatbot-form select:focus {
    border-color: #05b1bd;
}

.chatbot-form button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #05b1bd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chatbot-form button:hover {
    background-color: #6adfe8;
}

/* Chatbot Button */
#chatbot-btn {
    background-color: #05b1bd;
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 30px;
    text-align: center;
    z-index: 9999;
    animation: bounce 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.spinner {
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsiveness */
@media (max-width: 700px) {
    #chatbot-popup {
        width: 94vw;
        right: 5vw;
    }
    .chatbot-title
    {
        font-size: 16px;
    }
    .chatbot-description
    {
        font-size: 14px;
    }
}

.mic-btn.recording i {
    color: red;
    animation: pulse 1s infinite;
}

.input-container {
    position: relative;
}

.icon-size {
    font-size: 1.5rem;
}

#voice-visualization,
#input-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.voice-visualization {
    display: flex;
    height: 40px;
}

.voice-wave {
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #05b1bd;
    margin: 0 3px;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.voice-wave:nth-child(1) {
    animation-delay: 0s;
}

.voice-wave:nth-child(2) {
    animation-delay: 0.2s;
}

.voice-wave:nth-child(3) {
    animation-delay: 0.4s;
}

.voice-wave:nth-child(4) {
    animation-delay: 0.6s;
}

.voice-wave:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes wave {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}

.input-loader {
    display: flex;
    height: 40px;
}

.input-container.recording #taskInput,
.input-container.recording #input-loader {
    display: none;
}

.input-container.recording #voice-visualization {
    display: flex;
}

.input-container.processing #taskInput,
.input-container.processing #voice-visualization {
    display: none;
}

.input-container.processing #input-loader {
    display: flex;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}