/*
 * This is a manifest file that'll be compiled into application.css
 *


 */

/* Rating Buttons (Thumbs Up/Down) */
.btn-rating {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-rating:hover {
  border-color: #d1d5db;
  color: #6b7280;
  transform: scale(1.05);
}

.btn-rating-up:hover,
.btn-rating-up.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.btn-rating-down:hover,
.btn-rating-down.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-rating.active {
  transform: scale(1.1);
}

.btn-rating:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast animations for rating feedback */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.enabler-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.enabler-search {
  position: relative;
}

.enabler-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

.enabler-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.72rem 0.85rem 0.72rem 2.35rem;
  font-size: 0.9rem;
  color: var(--cx-dark);
  background: #fff;
}

.enabler-search input:focus {
  outline: none;
  border-color: var(--cx-cyan-dark);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

.enabler-role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.enabler-role-chip {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.52rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.enabler-role-chip:hover {
  border-color: var(--cx-cyan-dark);
  color: #075985;
}

.enabler-role-chip.active {
  background: #e0f2fe;
  border-color: #0891b2;
  color: #075985;
}

.enabler-clear-chip {
  color: #64748b;
  background: #f8fafc;
}

.enabler-no-results {
  display: none;
}

.agent-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.agent-type-pill,
.agent-role-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.agent-type-pill {
  background: #ecfeff;
  color: #0e7490;
}

.agent-role-pill {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .enabler-controls {
    grid-template-columns: 1fr;
  }

  .enabler-role-filters {
    justify-content: flex-start;
  }
}
