body {
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#status {
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

.partial {
    color: gray;
    font-style: italic;
}

.final {
    color: black;
    font-weight: bold;
    margin-top: 10px;
}

.translation {
    color: blue;
    margin-bottom: 10px;
}

.agent {
    color: #444;
    background-color: #f7f7f7;
    border-left: 3px solid #666;
    padding: 6px 8px;
    margin: 8px 0;
}

.agent.agent-error {
    color: #7a2b2b;
    background-color: #ffecec;
    border-left-color: #b23b3b;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.tts-indicator {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #999;
    font-size: 10px;
    font-weight: bold;
    background: #eee;
}

.tts-indicator.tts-idle {
    background: #ddd;
    color: #555;
}

.tts-indicator.tts-speaking {
    background: #7ad16f;
    color: #1f4f1a;
}

.tts-indicator.tts-muted {
    background: #e07b7b;
    color: #5a1d1d;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #4caf50;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Container for the log and its header */
#log-container {
    border: 1px solid #ccc;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header bar styling */
#log-header {
    background-color: #f1f1f1;
    padding: 8px 15px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#log-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: none;
    border: 1px solid #aaa;
    border-radius: 3px;
    color: #555;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
}

.control-btn:hover {
    background-color: #ddd;
}

.control-btn.minimize {
    font-size: 12px;
}

.control-btn.maximize {
    font-size: 14px;
}

/* Log Content Area */
#log {
    padding: 10px;
    height: 400px;
    /* Default height */
    overflow-y: auto;
    background-color: #fff;
    transition: height 0.3s ease, padding 0.3s ease;
}

/* States for the log container */
#log-container.minimized #log {
    height: 0;
    padding: 0 10px;
    overflow: hidden;
}

#log-container.maximized #log {
    height: 70vh;
    /* Takes up substantial screen height */
}

#log-container.maximized {
    /* Optional: could make it fixed position to fill screen */
}
