/* Reusable Badge Component - Based on Payment Pills */
.badge-component {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.2);
  color: #D1D5DB;
  font-size: 12px;
  font-weight: 600;
  height: 24px;
  margin-right: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: default;
  user-select: none;
}

.badge-component:hover {
  background: rgba(107, 114, 128, 0.3);
  border-color: rgba(107, 114, 128, 0.4);
}

.badge-component svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Badge variants */
.badge-component.primary {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
}

.badge-component.primary:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.badge-component.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
}

.badge-component.success:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.4);
}

.badge-component.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.badge-component.warning:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-component.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
}

.badge-component.error:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Badge sizes */
.badge-component.small {
  font-size: 10px;
  padding: 2px 6px;
  height: 20px;
  gap: 4px;
}

.badge-component.small svg {
  width: 10px;
  height: 10px;
}

.badge-component.large {
  font-size: 14px;
  padding: 6px 12px;
  height: 28px;
  gap: 8px;
}

.badge-component.large svg {
  width: 14px;
  height: 14px;
}

/* Badge with icon only */
.badge-component.icon-only {
  padding: 4px;
  width: 24px;
  justify-content: center;
}

.badge-component.icon-only.small {
  width: 20px;
  padding: 2px;
}

.badge-component.icon-only.large {
  width: 28px;
  padding: 6px;
}

/* Badge groups */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.badge-group .badge-component {
  margin-right: 0;
  margin-bottom: 0;
}

/* Tooltip-specific styling for badge-component when used as a tooltip */
.badge-component[id*="tooltip"],
#tier-drag-tooltip.badge-component {
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-bottom: 12px !important;
  background: #4b5563 !important;
  color: #ffffff !important;
  border: 1px solid #9ca3af !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-4px) !important;
  z-index: 20 !important;
  pointer-events: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important;
  display: block !important;
  gap: 0 !important;
  cursor: default !important;
}

.badge-component[id*="tooltip"].show,
#tier-drag-tooltip.badge-component.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.badge-component[id*="tooltip"].fade-out,
#tier-drag-tooltip.badge-component.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .badge-component {
    font-size: 11px;
    padding: 3px 6px;
    height: 22px;
  }
  
  .badge-component.small {
    font-size: 9px;
    padding: 2px 4px;
    height: 18px;
  }
  
  .badge-component.large {
    font-size: 13px;
    padding: 5px 10px;
    height: 26px;
  }
  
  .badge-component[id*="tooltip"],
  #tier-drag-tooltip.badge-component {
    font-size: 11px;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .badge-component {
    font-size: 10px;
    padding: 2px 5px;
    height: 20px;
  }
  
  .badge-component.small {
    font-size: 8px;
    padding: 1px 3px;
    height: 16px;
  }
  
  .badge-component.large {
    font-size: 12px;
    padding: 4px 8px;
    height: 24px;
  }
  
  .badge-component[id*="tooltip"],
  #tier-drag-tooltip.badge-component {
    font-size: 10px;
    padding: 3px 6px;
  }
} 