/* assets/triage.css */

/* Smooth transitions for buttons and form elements */
button, input, select, textarea {
  transition: all 0.2s ease-in-out;
}

/* Simple loader spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #38bdf8; /* Tailwind sky-400 */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dot-flash::after {
  content: '...';
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: '.'; }
}

/* ──────────────────────────────────────────────────────────────────────────── */
/* Mobile overrides: full-width, no box or shadow and no padding under 640px */
@media (max-width: 640px) {
  .asana-form-wrapper,
  #triage-chat {
    background: transparent !important;
    box-shadow: none       !important;
    border: none           !important;
    border-radius: 0       !important;
    margin: 0              !important;

    /* force full-width */
    width: 100%            !important;
    max-width: none        !important;

    /* strip out any leftover padding */
    padding: 0 !important;
  }
}


/* Smooth fade-in for assistant messages */
.triage-assistant-message {
  opacity: 1;

}

.triage-assistant-message.show {
  opacity: 1;

}

/* Scale effect on suggestion buttons */
#triage-suggestions button {

}

#triage-suggestions button:hover {
 
}

/* Extra smoothness for form and prompt buttons */
.triage-prompt-btn {
 
}

.triage-prompt-btn:hover {
  
}


/* Fake Tailwind utility colors */
.bg-orange-500 {
  background-color: #f97316; /* Tailwind orange-500 */
}

.bg-blue-500 {
  background-color: #3b82f6; /* Tailwind blue-500 */
}

.bg-blue-50 {
  background-color: #eff6ff; /* Tailwind blue-50 */
}

.bg-green-50 {
  background-color: #f0fdf4; /* Tailwind green-50 */
}

.text-white {
  color: #ffffff;
}

.text-blue-900 {
  color: #1e3a8a;
}

.text-green-900 {
  color: #166534;
}

.border-green-200 {
  border-color: #bbf7d0;
}

#triage-input {
  min-height: 48px;   /* about 3 lines */
  max-height: 240px;  /* cap at ~15 lines before scroll */
  overflow-y: auto;
}

#triage-input:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af; /* gray-400 */
  pointer-events: none;
}

div#triage-messages a {
    color: #1d4ed8 !important;
}

[data-selfhelp-cta] .flex.flex-wrap.gap-2 button,
[data-selfhelp-cta] .flex.flex-wrap.gap-2 a {
  background: #ededed;
  padding: 0.5rem 1rem;
}

.triage-multi-actions {
  display: flex;      /* or block, if suggestionsEl is not flex */
  justify-content: flex-start;
  margin-top: 0.75rem;
}


