/* Shared styles for chat components:
 * - lively-ai-workspace
 * - openai-realtime-chat
 * - lively-opencode
 */

/* Common chat styles will be moved here */

/* Horizontal positioning based on role and source */
.audio-user {
  margin-left: 0;
  margin-right: auto;
  max-width: 75%;
  align-self: flex-start;
}

.audio-assistant,  .audio-tool {
  margin-left: 10%;
  margin-right: auto;
  max-width: 45%;
  align-self: flex-start;
}

.code-user {
  margin-left: auto;
  margin-right: 10%;
  max-width: 75%;
  align-self: flex-end;
}

.code-assistant, .code-tool  {
  margin-left: auto;
  margin-right: 0;
  max-width: 75%;
  align-self: flex-end;
}

/* Debug Log Panel - shared across chat components */
.logging-panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-left: 1px solid #e0e0e0;
}

.logging-header {
  padding: 8px 12px;
  background: #e9ecef;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  font-size: 12px;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logging-header button {
  padding: 4px 8px;
  font-size: 11px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s;
}

.logging-header button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #495057;
}

#debugLog {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  list-style: none;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
}

#debugLog li {
  padding: 2px 4px;
  margin-bottom: 2px;
  color: #333;
  border-bottom: 1px solid #e9ecef;
}

#debugLog li:last-child {
  border-bottom: none;
}

/* Replay Controls - shared across chat components */
.replay-controls {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  align-items: center;
  font-size: 0.85em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.replay-controls button {
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.2s;
}

.replay-controls button:hover {
  background: #f0f0f0;
  border-color: #999;
}

.replay-controls button:active {
  background: #e0e0e0;
}

.replay-controls select {
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  font-size: 0.9em;
  cursor: pointer;
}

.replay-controls select:hover {
  border-color: #999;
}

.replay-controls #replayProgress {
  color: #856404;
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
}
