/* Badge Components */
/* Reusable badge styles for status, priority, and counts */

/* --- Base Badge Enhancements --- */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

/* --- Priority Badges --- */
.badge-priority-high,
.badge.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.badge-priority-medium,
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge-priority-low,
.badge.bg-success {
  background-color: #198754 !important;
  color: white !important;
}

/* --- Status Badges --- */
.badge-status-todo,
.badge.bg-secondary {
  background-color: #6c757d !important;
  color: white !important;
}

.badge-status-in-progress,
.badge.bg-primary {
  background-color: #0d6efd !important;
  color: white !important;
}

.badge-status-review,
.badge-status-pending-review {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.badge-status-done {
  background-color: #198754 !important;
  color: white !important;
}

.badge-status-paused {
  background-color: #fd7e14 !important;
  color: white !important;
}

.badge-status-blocked {
  background-color: #000 !important;
  color: white !important;
}

.badge-status-returned {
  background-color: #0dcaf0 !important;
  color: #000 !important;
}

/* --- Count Badges --- */
.badge-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Notification Badge --- */
.badge-notification {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.625rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Soft Badge Variants --- */
.badge-soft {
  font-weight: 500;
  border: 1px solid currentColor;
  background-color: transparent;
}

.badge-soft-primary {
  color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.3);
}

.badge-soft-success {
  color: var(--bs-success);
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.3);
}

.badge-soft-danger {
  color: var(--bs-danger);
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
}

.badge-soft-warning {
  color: var(--bs-warning);
  background-color: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.badge-soft-info {
  color: var(--bs-info);
  background-color: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.3);
}

/* --- Badge Sizes --- */
.badge-sm {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
}

.badge-lg {
  font-size: 0.9rem;
  padding: 0.5em 0.75em;
}

/* --- Badge with Icon --- */
.badge i,
.badge .bi {
  margin-right: 0.25rem;
  font-size: 0.875em;
}

.badge i:only-child,
.badge .bi:only-child {
  margin-right: 0;
}

/* --- Pill Badge --- */
.badge-pill {
  border-radius: 10rem;
  padding: 0.35em 0.75em;
}

/* --- Badge Hover Effects (for clickable badges) --- */
.badge-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

/* --- Badge Group --- */
.badge-group {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.badge-group .badge {
  margin: 0;
}

/* --- Pulsing Badge (for notifications) --- */
@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.badge-pulse {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* --- Badge Dot (minimal indicator) --- */
.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
  padding: 0;
}
