* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-button {
    flex: 1;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mode-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mode-button.active {
    background: white;
    color: #4a4a4a;
    border-color: rgba(0, 0, 0, 0.1);
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.secondary {
    background: #f1f1f1;
    color: #444;
    margin-top: 12px;
}

button.secondary:hover {
    background: #e0e0e0;
}

.status {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.status.connected {
    background: #d4edda;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.note {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

#dailyContainer {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.transcript {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.transcript-item {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.transcript-user {
    background: #e3f2fd;
}

.transcript-bot {
    background: #f3e5f5;
}

#debugLog {
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.text-conversation {
    min-height: 240px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
}

.text-message {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
}

.text-message.user {
    background: #e3f2fd;
}

.text-message.assistant {
    background: #f3e5f5;
}

.text-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.text-input-row textarea {
    flex: 1;
}

.text-input-row button {
    width: auto;
    min-width: 120px;
}

.action-feed {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    background: #fff8e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-card h4 {
    margin-bottom: 6px;
}

.action-card p {
    margin-bottom: 8px;
    white-space: pre-line;
}

.action-card .action-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.action-card .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-card .action-buttons button {
    flex: 1;
    min-width: 120px;
}

.action-card.pending {
    border-color: #ffd54f;
}

.action-card.executed {
    background: #e8f5e9;
    border-color: #81c784;
}

.action-card.rejected {
    background: #ffebee;
    border-color: #ef9a9a;
}

