/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require_tree .
 *= require_self
 */

/* Onboarding animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

/* Sidebar toggle functionality */
.sidebar-collapsed {
  width: 0 !important;
  overflow: hidden;
}

.sidebar-expanded {
  width: 20rem; /* 320px - w-80 */
}

.main-content-collapsed {
  margin-left: 20rem; /* 320px - w-80 */
}

.main-content-expanded {
  margin-left: 0;
}

/* Pill-style Tag Checkboxes - Hidden checkboxes only */
.tag-selector {
  @apply absolute scale-0;
}

/* Checked state styling */
.tag-selector:checked + label {
  @apply bg-purple-600 text-white;
}

.tag-selector:checked + label:hover {
  @apply bg-purple-700;
}

/* Circular checkbox styling with checkmark */
.prompt-checkbox {
  position: relative;
}

.prompt-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 1px 0;
}

/* Intent tooltip - ensure it's not clipped by overflow containers */
.intent-tooltip-container {
  position: relative;
  z-index: 1;
}

.intent-tooltip {
  position: fixed !important;
  z-index: 9999 !important;
}

/* Card background color when checkbox is checked */
.prompt-card.is-checked {
  background-color: rgb(239 246 255) !important; /* blue-50 */
  border-color: rgb(191 219 254) !important; /* blue-300 */
}

.prompt-card.is-checked:hover {
  background-color: rgb(219 234 254) !important; /* blue-100 */
}
