.input-area {
    padding: 15px; 
    background: radial-gradient(circle at top, #404754, #2a2f38 50%, #1a1d23 100%); 
    border-top: 1px solid #2c313c;
    display: flex; 
    gap: 8px; 
    position: relative;
}

#user-input { 
    color: white; 
    flex: 1; 
    padding: 14px; 
    border: 1px solid #676b6e; 
    border-radius: 30px; 
    font-size: 16px; 
    background: linear-gradient(135deg, #454647, #3a3b3d); 
}

#user-input::placeholder { 
    color: #8b93a7; 
    font-style: italic; 
}

#user-input:focus::placeholder {
    color: #8b93a7; 
    opacity: 1;
}

#user-input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

#send-btn { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    background: #003087; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

#send-btn:hover { 
    background: #00bfff; 
    box-shadow: 0 0 12px #00aaff; 
}

.send-icon {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.send-icon.clicked {
    transform: scale(0.85);
    filter: brightness(1.3);
}

.send-icon { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
    pointer-events: none; 
    transform: translateX(5px);
}

#send-btn.flash {
    background: #00bfff !important;
    box-shadow: 0 0 25px #00ccff, 0 0 40px rgba(0, 191, 255, 0.6);
    transition: all 0.12s ease;
}

#mic-btn {
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    position: relative; 
    overflow: hidden;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    /* Default loading state before JS adds mic-off */
    background: #003087;
    box-shadow: none;
}

.mic-gif { 
    position: absolute; 
    width: 60%; 
    height: 60%; 
    opacity: 0;
    transition: opacity 0.12s ease;
    object-fit: contain;
}

/* Default loading state before JS runs */
.mic-gif.off {
    opacity: 1;
}

#waveform {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    width: 50px; 
    height: 40px;
    position: absolute; 
    bottom: 10px; 
    right: 10px;
    pointer-events: none;
}

#waveform .bar {
    width: 6px; 
    height: 10px; 
    background: #00aaff; 
    animation: soundwave 1.2s infinite ease-in-out; 
    border-radius: 3px;
}

#waveform.speaking {
    background: transparent;
    box-shadow: none;
}

#waveform.speaking .bar {
    background: #00cc99;
    box-shadow: 0 0 8px rgba(0, 204, 153, 0.7);
}

#waveform .bar:nth-child(1) { animation-delay: 0s; }
#waveform .bar:nth-child(2) { animation-delay: 0.1s; }
#waveform .bar:nth-child(3) { animation-delay: 0.2s; }
#waveform .bar:nth-child(4) { animation-delay: 0.3s; }
#waveform .bar:nth-child(5) { animation-delay: 0.4s; }

/* Mic States */
#mic-btn.mic-on { 
    background: #00aaff; 
    box-shadow: 0 0 12px #00aaff, 0 0 25px rgba(0,170,255,0.5); 
    animation: buttonPulse 2.2s infinite ease-in-out;
}

#mic-btn.mic-off { 
    background: #003087; 
    box-shadow: none; 
}

#mic-btn.mic-speaking {
    background: #00cc99;
    box-shadow: 0 0 15px #00cc99, 0 0 35px rgba(0, 204, 153, 0.8);
    animation: pulse-green 1.8s infinite ease-in-out;
}

#mic-disabled {
    position: absolute;
    width: 60%;
    height: 60%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    object-fit: contain;
}

/* all mics animations*/
#mic-btn.mic-on .mic-gif {
    animation: disabledPulse 2s infinite ease-in-out;
}

#mic-btn.mic-off .mic-gif {
    animation: disabledPulse 3s infinite ease-in-out;
}

#mic-btn.mic-speaking #mic-disabled {
    opacity: 1;
    animation: disabledPulse 2s infinite ease-in-out;
}