/* theme.css - Character colors and theme */

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: toastIn 0.3s ease;
}

.toast--success { border-left: 3px solid #27ae60; }
.toast--error { border-left: 3px solid #e74c3c; }
.toast--info { border-left: 3px solid #2196f3; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  min-width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.modal h2 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* Drag indicator */
.page-thumb.dragging {
  opacity: 0.4;
}

.page-thumb.drag-over {
  border-color: var(--accent);
  background: rgba(233,69,96,0.1);
}

/* Page role badges */
.role-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Character chips */
.char-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
}

/* AI panel styles */
.ai-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.ai-panel__status {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}

.ai-panel__result {
  max-height: 300px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.5;
}

/* Keyboard shortcut hints */
.shortcut-hint {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: monospace;
}
