/* AI Tool Boilerplate - Custom Styles
 * Minimal styles complementing Tailwind CSS
 * Brand color via CSS var: --brand-color (set by app.js from config)
 */

:root {
  --brand-color: #2563eb;
}

/* ===== Mode cards ===== */
.mode-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.625rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.mode-card:hover {
  border-color: var(--brand-color);
}
.mode-card.active {
  border-color: var(--brand-color);
  background: color-mix(in srgb, var(--brand-color) 8%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-color) 25%, transparent);
}
.mode-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #1e293b;
}
.mode-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

/* ===== Start button ===== */
.start-btn {
  background: var(--brand-color);
}
.start-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.start-btn.running .btn-spinner {
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Streaming cursor ===== */
.is-streaming #outputText::after {
  content: '▋';
  color: var(--brand-color);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Status bar ===== */
#statusBar.done {
  color: #059669;
}

/* ===== Toast ===== */
.toast-in {
  animation: toastIn 0.25s ease-out;
}
.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(20px); opacity: 0; }
}

/* ===== Placeholder ===== */
.placeholder {
  color: #94a3b8;
}
