/* Soares CRM Agent — Custom Theme */

/* --- Brand colors --- */
:root {
  --soares-primary: #2563eb;
  --soares-primary-light: #3b82f6;
  --soares-primary-dim: #1e40af;
  --soares-accent: #10b981;
  --soares-accent-dim: #059669;
  --soares-bg: #0f172a;
  --soares-surface: #1e293b;
  --soares-surface2: #334155;
  --soares-border: #475569;
  --soares-text: #f1f5f9;
  --soares-text-muted: #94a3b8;
}

/* --- Message bubbles --- */
.cl-message-assistant .cl-message-content {
  border-left: 3px solid var(--soares-primary);
  padding-left: 12px;
}

.cl-message-user .cl-message-content {
  border-left: 3px solid var(--soares-accent);
  padding-left: 12px;
}

/* --- Tool call steps — more compact --- */
.cl-step {
  border-radius: 8px;
  margin: 4px 0;
}

/* --- Starter cards --- */
.cl-starter {
  border: 1px solid var(--soares-border) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.cl-starter:hover {
  border-color: var(--soares-primary-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* --- Settings panel --- */
.cl-chat-settings {
  border-radius: 12px;
}

/* --- Smooth scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--soares-surface2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--soares-border);
}

/* --- Chat profile selector --- */
.cl-chat-profile {
  border-radius: 8px !important;
}

/* --- Stop button visibility --- */
.cl-stop-button {
  background: #ef4444 !important;
  border-radius: 50% !important;
}

/* --- Processing indicator pulse --- */
.cl-step[data-name="Pensando"] {
  animation: pulse-thinking 1.5s ease-in-out infinite;
}

.cl-step[data-name="Pensando"]::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soares-primary-light);
  margin-right: 8px;
  animation: blink-dot 1s ease-in-out infinite;
}

@keyframes pulse-thinking {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
