/* Global Styles */
body {
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Main Container */
.container {
    background-color: #1e1e1e; /* Slightly lighter card background */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2); /* Cyan glow */
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid #333;
}

/* Header */
header h1 {
    color: #00bcd4; /* Cyan accent */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Microphone Button */
.mic-container {
    margin-bottom: 2rem;
}

.mic-button {
    background-color: #263238;
    border: 2px solid #00bcd4;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: #00bcd4;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    outline: none;
}

.mic-button:hover {
    background-color: #00bcd4;
    color: #121212;
    box-shadow: 0 0 15px #00bcd4;
}

.mic-button.listening {
    background-color: #ff5252; /* Red when listening */
    border-color: #ff5252;
    color: white;
    box-shadow: 0 0 20px #ff5252;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#statusText {
    font-weight: bold;
    color: #00bcd4;
}

/* Output Area */
.output-area {
    text-align: left;
    background-color: #2c2c2c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.message {
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.message:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.user-message .label {
    color: #bbb;
}

.jarvis-message .label {
    color: #00bcd4;
}

.message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Commands List */
.commands-list {
    text-align: left;
    font-size: 0.9rem;
    color: #888;
    background: #252525;
    padding: 10px;
    border-radius: 8px;
}

.commands-list h3 {
    margin-top: 0;
    color: #ddd;
    font-size: 1rem;
}

.commands-list ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.commands-list li {
    margin-bottom: 5px;
}

/* Utility Classes */
.hidden {
    display: none;
}

#supportWarning {
    background-color: #b71c1c;
    color: white;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
}
