/* 
  Modern Badge Component Styles
  These styles should be added to your input-fields.css or main.css file
*/

/* Base Badge Styles */
.ihub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--Nunito);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
}

/* Badge Sizes */
.ihub-badge-small {
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  min-width: 1.25rem;
  height: 1.25rem;
}

.ihub-badge-medium {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: 1.5rem;
  height: 1.5rem;
}

.ihub-badge-large {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  min-width: 1.75rem;
  height: 1.75rem;
}

/* Badge Shapes */
.ihub-badge-rounded {
  border-radius: 4px;
}

.ihub-badge-pill {
  border-radius: 999px;
}

.ihub-badge-square {
  border-radius: 0;
}

/* Badge Variants - Filled */
.ihub-badge-default {
  background-color: var(--ChineseSilver);
  color: var(--Gunmetal);
}

.ihub-badge-primary {
  background-color: var(--DarkCyan);
  color: var(--White);
}

.ihub-badge-success {
  background-color: var(--CaribbeanGreen);
  color: var(--White);
}

.ihub-badge-warning {
  background-color: var(--Corn);
  color: var(--Gunmetal);
}

.ihub-badge-danger {
  background-color: var(--Danger);
  color: var(--White);
}

.ihub-badge-info {
  background-color: var(--TiffanyBlue);
  color: var(--White);
}

/* Badge Variants - Outlined */
.ihub-badge-outlined {
  background-color: transparent;
  border: 1px solid;
}

.ihub-badge-default.ihub-badge-outlined {
  border-color: var(--ChineseSilver);
  color: var(--ChineseSilver);
}

.ihub-badge-primary.ihub-badge-outlined {
  border-color: var(--DarkCyan);
  color: var(--DarkCyan);
}

.ihub-badge-success.ihub-badge-outlined {
  border-color: var(--CaribbeanGreen);
  color: var(--CaribbeanGreen);
}

.ihub-badge-warning.ihub-badge-outlined {
  border-color: var(--Corn);
  color: var(--Gunmetal);
}

.ihub-badge-danger.ihub-badge-outlined {
  border-color: var(--Danger);
  color: var(--Danger);
}

.ihub-badge-info.ihub-badge-outlined {
  border-color: var(--TiffanyBlue);
  color: var(--TiffanyBlue);
}

/* Dot Badge */
.ihub-badge-dot {
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}

.ihub-badge-small.ihub-badge-dot {
  min-width: 6px;
  height: 6px;
}

.ihub-badge-large.ihub-badge-dot {
  min-width: 10px;
  height: 10px;
}

/* Badge Positioning */
.ihub-badge-attached {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: var(--z-navigation);
}

/* Badge with Icons Container */
.ihub-badge-with-icon {
  position: relative;
  display: inline-flex;
  margin-right: 1.5rem;
}

.ihub-badge-with-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Badge Examples Layout */
.ihub-badge-examples {
  padding: 1rem;
}

.ihub-badge-demo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Hover and Focus Effects */
.ihub-badge[role="button"] {
  cursor: pointer;
}

.ihub-badge[role="button"]:hover,
.ihub-badge[role="button"]:focus {
  opacity: 0.85;
  outline: none;
}

/* Animation for badge entrance */
@keyframes ihub-badge-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ihub-badge-with-icon .ihub-badge {
  animation: ihub-badge-pulse 0.3s ease-in-out;
}
