body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1 {
    color: #333;
}

#status {
    margin-top: 20px;
    font-weight: bold;
}

#startButton {
    padding: 10px 20px;  /* Increased horizontal padding */
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;  /* Changed from 50% to 8px for rounded corners */
    transition: all 0.3s ease;
    min-width: 200px;    /* Added min-width for better proportions */
    font-size: 14px;     /* Optional: adjust font size */
}

#startButton.listening {
    animation: pulse 1s infinite;
}

#startButton:hover {
    background-color: #0056b3;  /* Added hover state */
    transform: translateY(-1px);  /* Optional: slight lift effect */
}

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

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-indicator.connected {
    background-color: #4CAF50;
}

.status-indicator.recording {
    background-color: #f44336;
    animation: pulse 1s infinite;
}

.error-message {
    color: #f44336;
}

.transcript-container {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
}

.input-container {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

#textInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#sendButton {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#sendButton:hover {
    background-color: #0056b3;
}

.voice-config {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.voice-config h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.config-column {
    min-width: 0;
}

.config-item {
    margin-bottom: 1rem;
}

.config-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.config-item select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9em;
}

.config-item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.config-item input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.value-display {
    display: inline-block;
    min-width: 30px;
    text-align: right;
    font-size: 0.9em;
}

.config-note {
    margin-top: 10px;
    padding: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

.audio-meter-container {
    height: 38px;
    width: 200px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    position: relative;
}

.audio-meter {
    width: 100%;
    height: 100%;
    background: #f0f0f0; /* Default background */
    transition: background 0.1s ease;
}

#processingMode {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.processing-mode-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.voice-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: space-between;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.control-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-item input[type="range"] {
    flex: 1;
}

.control-item label {
    min-width: 60px;
}

.value-display {
    min-width: 30px;
    text-align: right;
}

/* Tab navigation styling */
.tab-navigation {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    bottom: -1px;
}

.tab-button:hover {
    background-color: #e9e9e9;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Log viewer specific styles */
.logs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logs-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logs-selector select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.logs-selector button,
.logs-actions button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logs-selector button:hover,
.logs-actions button:hover {
    background-color: #0056b3;
}

.logs-container {
    width: 100%;
    height: 500px;
}

#logContent {
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}