/* Custom Styles for RedmineBot Wizard */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 1);
}

/* Stepper Tabs */
.step-tab {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(30, 41, 59, 0.8);
  color: #64748b;
  cursor: pointer;
}

.step-tab .step-number {
  background-color: rgba(30, 41, 59, 1);
  color: #94a3b8;
}

.step-tab.active {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.step-tab.active .step-number {
  background-color: #6366f1;
  color: #ffffff;
}

.step-tab.completed {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.step-tab.completed .step-number {
  background-color: #10b981;
  color: #ffffff;
}

/* Wizard Step Animation */
.wizard-step {
  animation: fadeIn 0.2s ease-in-out;
}

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

/* AI Highlight Pulse */
.ai-highlight {
  animation: ai-pulse 2s ease-in-out 3;
}

@keyframes ai-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.8);
  }
  50% {
    box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.6);
    border-color: rgba(129, 140, 248, 1);
  }
}

/* ================= TAG MULTISELECT AUTOCOMPLETE ================= */

.tag-autocomplete-container {
  position: relative;
  background-color: #020617; /* bg-slate-950 */
  border: 1px solid #334155; /* border-slate-700 */
  border-radius: 0.75rem;
  padding: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  transition: all 0.15s ease-in-out;
}

.tag-autocomplete-container:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #e0e7ff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  animation: tagPop 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tagPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tag-badge button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border-radius: 9999px;
  padding: 0.1rem;
  transition: color 0.15s, background 0.15s;
}

.tag-badge button:hover {
  color: #f87171;
  background: rgba(244, 63, 94, 0.2);
}

.tag-input-field {
  flex: 1;
  min-width: 130px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.8125rem;
  color: #f8fafc;
  padding: 0.25rem 0.375rem;
}

.tag-input-field::placeholder {
  color: #64748b;
}

.tag-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background-color: #0f172a; /* slate-900 */
  border: 1px solid #334155;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
}

.tag-dropdown-menu.show {
  display: block;
  animation: fadeIn 0.15s ease-in-out;
}

.tag-dropdown-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  transition: background-color 0.12s, color 0.12s;
}

.tag-dropdown-item:last-child {
  border-bottom: none;
}

.tag-dropdown-item:hover, .tag-dropdown-item.active {
  background-color: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}

/* Markdown preview prose */
.prose h1, .prose h2, .prose h3 {
  color: #f1f5f9;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.prose h3 {
  font-size: 0.875rem;
}

.prose p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose code {
  background: rgba(15, 23, 42, 0.8);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.8em;
  color: #38bdf8;
}
