/* General Styling */
body {
    font-family: 'Space Mono', monospace;
    background: #000000;
    color: #FFFFFF;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: left;
    background: #121212;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Title */
h1 {
    font-size: 28px;
    color: #FF4500;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
}

/* Microphone Visualizer */
#mic-visualizer {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 20px auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
}

#mic-visualizer.idle {
    border: 2px solid #FFFFFF;
    background: transparent;
    color: #FFFFFF;
}

#mic-visualizer.listening {
    border: none;
    background: #FF4500;
}

#mic-visualizer.processing {
    opacity: 0.7;
    cursor: wait;
}

#mic-visualizer:hover {
    transform: scale(1.05);
}

/* Dropdown (Microphone Selector) */
#mic-select {
    margin-top: 20px;
    width: 10%;
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 5px;
    background: #1E1E1E;
    color: #FFFFFF;
    font-size: 16px;
    font-family: 'Space Mono', monospace;
}

/* Dialogue Section */
.dialogue {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.speech-box, .response-box {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    min-height: 60px;
    text-align: left;
}

.speech-box h3, .response-box h3 {
    color: #FF4500;
    margin: 0 0 10px 0;
}

#speech-area, #response-area {
    color: white;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: scroll;
    max-height: 15vh;
    
    /* Scrollbar Styling */
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: #FF4500 #1E1E1E;  /* Firefox: thumb and track color */
    
    /* Webkit (Chrome, Safari, Edge) Scrollbar Styling */
    &::-webkit-scrollbar {
        width: 8px;  /* Width of the scrollbar */
    }
    
    &::-webkit-scrollbar-track {
        background: #1E1E1E;  /* Dark background matching your UI */
        border-radius: 4px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #FF4500;  /* Orange thumb matching your accent color */
        border-radius: 4px;
    }

    /* Remove arrow buttons in Webkit */
    &::-webkit-scrollbar-button {
        display: none;
    }
}

/* Message Box */
#message-box {
    margin-top: 20px;
    padding: 10px;
    background: #1E1E1E;
    border: 1px solid #333333;
    border-radius: 5px;
    max-height: 120px;
    overflow-y: auto;
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-align: left;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 3px;
}

.message.error {
    background: #D32F2F;
    color: #FFFFFF;
}

.message.warning {
    background: #FBC02D;
    color: #121212;
}

.message.success {
    background: #388E3C;
    color: #FFFFFF;
}