body {
    background-color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

.pebble-container {
    background-color: #000;
    padding: 20px;
    /* Slim bezel */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    /* Slim width */
    height: 310px;
    /* Slim height */
    flex-shrink: 0;
    margin-bottom: 20px;
    /* Space between watch and console */
}

.pebble-screen {
    width: 244px;
    height: 268px;
    background-color: #fff;
    /* Pebble White */
    color: #000;
    border: 4px solid #000;
    /* Inner bezel */
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.status-bar {
    background-color: #000;
    color: #fff;
    font-size: 12px;
    padding: 2px;
    text-align: center;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    overflow: hidden;
}

.scroll-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fixed-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#message {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    min-height: 40px;
}

.pebble-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px;
    margin: 2px 0;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 12px;
}

.pebble-btn:active {
    background-color: #555;
}

/* Stealth buttons with title/subtitle */
.stealth-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 10px;
    margin: 2px 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    font-family: inherit;
}

.stealth-btn:hover {
    background-color: #333;
}

.stealth-btn:active {
    background-color: #555;
}

.btn-title {
    font-size: 14px;
    font-weight: bold;
}

.btn-subtitle {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.agent-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.mic-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    padding: 0;
    line-height: 30px;
}

.back-button {
    margin-top: 10px;
    background-color: #555;
    font-size: 12px;
    padding: 5px 20px;
    width: auto;
    align-self: center;
}

/* Debug Console */
.debug-console {
    width: 300px;
    background-color: #222;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.log-box {
    height: 150px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px;
    overflow-y: auto;
    font-size: 12px;
    color: #0f0;
    font-family: 'Consolas', monospace;
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.log-entry.user {
    color: #0ff;
}

.log-entry.agent {
    color: #0f0;
}

.log-entry.system {
    color: #888;
}

.input-group {
    display: flex;
    gap: 5px;
}

#agent-input {
    flex: 1;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
}

button {
    cursor: pointer;
}

.mic-btn.recording {
    background-color: #f00;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Clarification Chips */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chip {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chip:hover {
    background-color: #45a049;
}

/* Clarification Options (Pebble style) */
.clarify-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.clarify-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 5px;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 12px;
    transition: background-color 0.1s;
}

.clarify-btn:active,
.clarify-btn:hover {
    background-color: #333;
}

.clarify-btn::before {
    content: "▸ ";
}

/* API Key Form */
.api-key-form {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 5px;
}

.api-key-form input {
    flex: 1;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
}

.api-key-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.api-key-form button:hover {
    background-color: #45a049;
}

#api-key-status {
    color: #0f0;
    font-size: 11px;
}