body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background: #f0f0f0;
    width: 240px;
    height: 282px;
    box-sizing: border-box;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.status {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
}

.listening {
    background: #4CAF50;
    color: white;
}

.stopped {
    background: #f44336;
    color: white;
}

.connecting {
    background: #FF9800;
    color: white;
}

.transcript {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    background: white;
    overflow-y: auto;
    font-size: 12px;
}

.response {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background: #e8f5e8;
    overflow-y: auto;
    font-size: 12px;
}

.controls {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.perm-btn {
    background: #FF9800;
    color: white;
}

.debug-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff44;
    font-family: monospace;
    font-size: 10px;
    border: 1px solid #00ff44;
    border-radius: 5px;
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #00ff44;
    color: black;
    font-weight: bold;
}

.debug-header button {
    background: none;
    border: none;
    color: black;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.debug-content {
    height: calc(100% - 30px);
    overflow-y: auto;
    padding: 5px;
}

.debug-log {
    margin: 2px 0;
    word-wrap: break-word;
}

.debug-log.error {
    color: #ff4444;
}

.debug-log.warn {
    color: #ffaa44;
}

.debug-log.info {
    color: #00ff44;
}

.debug-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #00ff44;
    color: black;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    z-index: 10001;
}

.toggle-recording-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.toggle-recording-btn:hover {
    background: #45a049;
}

.toggle-recording-btn:active {
    background: #3d8b40;
}

.toggle-recording-btn.recording {
    background: #f44336;
}

.toggle-recording-btn.recording:hover {
    background: #d32f2f;
}

.test-speech-btn {
    background: #9C27B0;
    color: white;
}

.test-speech-btn:hover {
    background: #7B1FA2;
}

.test-speech-btn:active {
    background: #4A148C;
}