/* ====================================================================
   COMPONENT: LOGO
   ==================================================================== */

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  color: var(--white-90);
}

/* Avatar Component */
.avatar {
  height: 24px;
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ====================================================================
   COMPONENT: CARDS
   ==================================================================== */

.card-column-0px {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  width: 100%;
  gap: 0px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-200);
  cursor: pointer;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-column-0px:hover {
  background-color: var(--bg-200-hover);
}

.card-status-none {
  height: 42px;
  background-color: var(--white-10);
}

.card-title-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--bg-200);
}

.card-title-icon .icon {
  font-size: 28px;
  color: var(--white-90);
}

.card-menu-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 16px 16px;
}

.container-row > .card-column-0px {
  flex: 1 1 0px;
  min-width: 0;
}

/* Status Card */
.status-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-200);
  box-sizing: border-box;
}

.status-card-warning {
  background-color: var(--red-20);
  border-color: var(--red-50);
}

.status-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--bg-200);
  flex-shrink: 0;
}

.status-card-icon .icon {
  font-size: 28px;
  color: var(--white-90);
}

.status-card-icon.warning {
  background-color: var(--red-100);
}

@media (max-width: 768px) {
  /* Status card adjustments */
  .status-card {
    gap: 16px;
    align-items: center;
  }

  .status-card .container-row {
    width: 100%;
  }
}

/* Module Card */
.module-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  gap: 16px;
  background-color: var(--bg-100);
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

/* Ensure term-modules containers display properly */
.term-modules {
  display: block;
  width: 100%;
}

/* Module cards with borders using CSS variable */
#moduleCardsContainer .module-card {
  border-bottom: 1px solid var(--border);
}

/* Remove border from last module card */
#moduleCardsContainer .module-card:last-child {
  border-bottom: none;
}

.module-card:hover {
  background-color: var(--bg-200);
  border-color: var(--white-20);
}

@media (max-width: 768px) {
  /* Module cards full width */
  .module-card {
    align-items: flex-start;
    gap: 32px;
  }

  /* Module card mobile adjustments */
  .module-card .container-row {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Chart Card */
.chart-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-100);
  gap: 16px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: transparent;
  min-width: 0;
  flex-shrink: 1;
  /* Horizontal scrolling for charts with many data points */
  overflow-x: auto;
  overflow-y: hidden;
  /* Add bottom padding to prevent scrollbar from covering labels */
  padding-bottom: 4px;
}

/* Custom scrollbar styling for chart containers */
.chart-container::-webkit-scrollbar {
  height: 6px;
}

.chart-container::-webkit-scrollbar-track {
  background: var(--bg-200);
  border-radius: 3px;
}

.chart-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chart-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.line-chart {
  max-width: none;
  display: block;
}

@media (max-width: 768px) {
  /* Chart cards stack vertically on mobile */
  .container-row > .chart-card {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Chart card mobile improvements */
  .chart-card {
    padding: 12px;
  }

  .chart-container {
    height: 200px;
  }
}

/* ====================================================================
   COMPONENT: BUTTONS
   ==================================================================== */

/* Base Button Styles */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.btn span {
  padding: 2.5px 0;
}

.btn .icon {
  font-size: 22px;
}

/* Button Variants */
/* Primary Button - Solid Blue Background */
.btn-primary {
  position: relative;
  background: var(--blue-100);
  border-color: transparent;
  color: var(--white-90);
  box-sizing: border-box;
}

.btn-primary.pulse-border::after {
  background-color: var(--blue-100);
}

.btn-primary:hover.pulse-border::after {
  background-color: var(--blue-80);
}

/* Secondary Button - Dark Background */
.btn-secondary {
  position: relative;
  background-color: var(--white-10-s);
  border: none;
  color: var(--white-90);
  box-sizing: border-box;
}

.btn-secondary.pulse-border::after {
  background-color: var(--white-10-s);
}

.btn-secondary:hover.pulse-border::after {
  background-color: var(--white-15-s);
}

/* Outline Button with Pulse Border */
.btn-outline.pulse-border::after {
  background-color: var(--bg-100);
}

.btn-outline:hover.pulse-border::after {
  background-color: var(--bg-200);
}

/* Ghost Button - Transparent Background */
.btn-ghost {
  background: none;
  border-color: var(--white-0);
  color: var(--white-60);
}

.btn-ghost:hover {
  background-color: var(--white-10);
}

/* Success Button - Green Background */
.btn-success {
  position: relative;
  background: var(--green-100);
  border-color: transparent;
  color: var(--white-90);
  box-sizing: border-box;
}

.btn-success:hover {
  background: var(--green-80);
}

/* Danger Button - Red Background */
.btn-danger {
  position: relative;
  background: var(--red-100);
  border-color: transparent;
  color: var(--white-90);
  box-sizing: border-box;
}

.btn-danger:hover {
  background: var(--red-80);
}

/* Outline Button - Bordered Button */
.btn-outline {
  background: var(--bg-100);
  border-color: var(--border);
  color: var(--white-60);
}

.btn-outline:hover {
  background-color: var(--bg-200);
  border-color: var(--white-30);
  color: var(--white-90);
}

/* Bare Button - No Padding */
.btn-bare {
  background: none;
  border: none;
  padding: 0;
  color: var(--white-40);
}

.btn-bare .icon {
  font-size: 18px;
}

.btn-bare:hover {
  color: var(--white-90);
}

.btn-bare-primary {
  color: var(--blue-100);
}

.btn-bare-primary:hover {
  color: var(--blue-80);
}

/* Menu Button - Used in Navigation */
.btn-menu {
  background: none;
  border-color: var(--white-0);
  color: var(--white-60);
  justify-content: flex-start;
}

.btn-menu:hover {
  background-color: var(--white-5);
}

.btn-menu.active {
  background-color: var(--white-10);
  color: var(--white-90);
}

/* Icon Button - Icon-only with Tooltip */
.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0;
}

.btn-icon .icon {
  font-size: 22px;
  color: var(--white-60);
}

.btn-icon:hover {
  background-color: var(--white-8);
}

.btn-icon:hover .icon {
  color: var(--white-90);
}

.btn-icon.active {
  background-color: var(--white-10);
}

.btn-icon.active .icon {
  color: var(--white-90);
}

/* Tooltip for Icon Buttons */
.btn-icon .tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-200);
  color: var(--white-90);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  border: 1px solid var(--border);
}

.btn-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Expanding Circle Button */
.btn-expand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 99px;
  background-color: var(--bg-100);
  border: 1px solid var(--border);
  padding: 0;
  transition: width 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}

.btn-expand .icon {
  font-size: 22px;
  color: var(--white-60);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-expand span {
  color: var(--white-60);
  font-size: 14px;
  white-space: nowrap;
  width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 2.5px 0;
  transition: opacity 0.2s ease, width 0.3s ease, margin 0.3s ease;
}

.btn-expand:hover {
  width: auto;
  padding: 0 12px;
  border-color: var(--border);
  justify-content: flex-start;
}

.btn-expand.pulse-white::before {
  border-radius: 99px;
}

.btn-expand.pulse-white::after {
  border-radius: 99px;
  background-color: var(--bg-100);
}

.btn-expand:hover.pulse-white::after {
  background-color: var(--bg-100);
}

.btn-expand .icon,
.btn-expand span {
  position: relative;
  z-index: 2;
}

.btn-expand:hover span {
  width: auto;
  opacity: 1;
  margin-left: 8px;
}

/* ====================================================================
   COMPONENT: ACCORDION MENU
   ==================================================================== */

/* Accordion Menu Container */
.accordion-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Accordion Menu Toggle Button */
.btn-menu-accordion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  border: 1px solid transparent;
  box-sizing: border-box;
  background: none;
  border-color: var(--white-0);
  color: var(--white-60);
  text-decoration: none;
  justify-content: space-between;
}

.btn-menu-accordion:hover {
  background-color: var(--white-5);
}

.btn-menu-accordion.active {
  background-color: var(--white-10);
  color: var(--white-90);
}

.btn-menu-accordion .icon {
  font-size: 22px;
}

.btn-menu-accordion .icon-chevron {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-menu-accordion.active .icon-chevron {
  transform: rotate(180deg);
}

/* Accordion Content Container */
.accordion-content {
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.accordion-content.open {
  opacity: 1;
  transform: scaleY(1);
}

/* Accordion Sub-menu */
.accordion-submenu {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 32px;
  gap: 4px;
}

.accordion-submenu::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border);
}

.accordion-submenu .btn-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  border: 1px solid transparent;
  box-sizing: border-box;
  background: none;
  border-color: var(--white-0);
  color: var(--white-60);
  text-decoration: none;
}

.accordion-submenu .btn-menu:hover {
  background-color: var(--white-5);
  color: var(--white-60);
}

.accordion-submenu .btn-menu.active {
  background-color: var(--white-10);
  color: var(--white-90);
}

.accordion-submenu .btn-menu .icon {
  font-size: 22px;
}

/* ====================================================================
   COMPONENT: LINKS
   ==================================================================== */

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--white-60);
  text-decoration: underline;
}

.link-icon span {
  padding: 2.5px 0;
}

.link-icon .icon {
  font-size: 22px;
  color: var(--white-60);
}

.link-icon:hover {
  color: var(--white-100);
}

.link-icon:hover .icon {
  color: var(--white-100);
}

/* ====================================================================
   COMPONENT: FORM ELEMENTS
   ==================================================================== */

/* Input Fields */
.input-field {
  background-color: var(--bg-100);
  border: 1px solid var(--border);
  color: var(--white-90);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: "Rubik", sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: var(--blue-100);
}

/* Input Fields Solid - No border with darker background */
.input-field-solid {
  background-color: var(--bg-200);
  border: 1px solid transparent;
  color: var(--white-90);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: "Rubik", sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.input-field-solid:hover {
  background-color: var(--bg-200-hover);
}

.input-field-solid:focus {
  outline: none;
  border-color: var(--blue-100);
  background-color: var(--bg-200-hover);
}

/* Input Fields (Box) */
.input-box {
  background-color: transparent;
  border: 1px solid var(--white-10-s);
  color: var(--white-90);
  border-radius: 8px;
  padding: 28px 12px 8px 12px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  width: 100%;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-box:focus {
  outline: none;
  border-color: var(--blue-100);
}

/* Input container with label inside */
.input-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.input-container.pulse-border::after {
  background-color: var(--bg-100);
  border-radius: 7px;
}

.input-container:focus-within::before {
  opacity: 0;
  animation: none;
}

.input-container label {
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 12px;
  color: var(--white-40);
  pointer-events: none;
  z-index: 3;
  transition: color 0.3s ease;
}

.input-container:focus-within label {
  color: var(--blue-100);
}

/* Ensure input is above animation but below label */
.input-container input {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Input Placeholder Styling */
.input-field::placeholder {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 2.5px 0;
  color: var(--white-20);
  opacity: 1;
}

.view-mode {
  color: var(--white-90);
  width: 100%;
  padding: 5px 12px;
  border: 1px solid transparent;
}

/* Labels */
.label {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 2px 0;
  color: var(--white-60);
}

/* Dropdowns */
.dropdown {
  position: relative;
  font-family: "Rubik", sans-serif;
}

.dropdown-toggle {
  width: auto; /* Allow natural sizing to content */
  padding: 6px 12px;
  gap: 8px;
  background-color: var(--bg-100);
  color: var(--white-90);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping */
  touch-action: manipulation; /* Improve touch responsiveness */
}

.dropdown-toggle:hover {
  background-color: var(--bg-200);
  border: 1px solid var(--white-30);
}

.dropdown-toggle.focused {
  border-color: var(--blue-100);
}

.dropdown-toggle span {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--white-60);
  line-height: normal;
  padding: 2.5px 0;
}

.dropdown-toggle span.selected {
  color: var(--white-90);
}

.dropdown-toggle .icon {
  font-size: 22px;
  color: var(--white-60);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: 100%;
  min-width: max-content;
  margin-top: 8px;
  padding: 6px;
  background-color: var(--bg-200);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.dropdown-menu.open {
  display: flex;
}

.dropdown-menu li {
  min-height: 36px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-60);
  border-radius: 6px;
  touch-action: manipulation; /* Improve touch responsiveness */
}

.dropdown-menu li.selected {
  color: var(--blue-100);
}

.dropdown-menu li.selected .icon {
  color: var(--blue-100);
}

.dropdown-menu li .icon {
  font-size: 22px;
  color: var(--white-60);
}

.dropdown-menu li:hover {
  background-color: var(--white-5);
}

.selected-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown alignment utilities */
.dropdown-right .dropdown-menu {
  left: auto;
  right: 0;
}

/* Dropdown direction utilities */
.dropdown-up .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Smooth transition for chevron rotation */
.chevron-icon {
  transition: transform 0.3s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  /* Ensure dropdowns work on mobile */
  .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

  /* Full width dropdowns get special treatment */
  .mobile-full-width .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ====================================================================
   COMPONENT: TABLES
   ==================================================================== */

.table-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--white-90);
  background-color: var(--bg-200);
  border: none;
}

.table thead {
  background-color: var(--white-10);
  border-bottom: 1px solid var(--white-20);
}

.table thead th {
  text-align: left;
  font-weight: 400;
  padding: 12px 16px;
  color: var(--white-60);
  white-space: nowrap;
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody td {
  padding: 12px 16px;
  color: var(--white-90);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--white-5);
}

/* Table Cell Utilities */
.cell-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cell-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cell-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.cell-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* ====================================================================
   COMPONENT: MODALS
   ==================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background-color: var(--bg-200);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-footer {
  display: flex;
  justify-content: end;
  align-items: center;
}

/* ====================================================================
   COMPONENT: ALERTS
   ==================================================================== */

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;

  width: 100%;
  box-sizing: border-box;
}

.alert .icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

/* Alert Variants */
.alert-success {
  background-color: var(--green-20);
  border-color: var(--green-50);
  color: var(--green-100);
}

.alert-success .icon {
  color: var(--green-100);
}

.alert-danger {
  background-color: var(--red-20);
  border-color: var(--red-50);
  color: var(--red-100);
}

.alert-danger .icon {
  color: var(--red-100);
}

.alert-warning {
  background-color: var(--orange-20);
  border-color: var(--orange-50);
  color: var(--orange-100);
}

.alert-warning .icon {
  color: var(--orange-100);
}

.alert-info {
  background-color: var(--blue-20);
  border-color: var(--blue-50);
  color: var(--blue-100);
}

.alert-info .icon {
  color: var(--blue-100);
}

.alert-plain {
  background-color: var(--white-5);
  border-color: var(--white-20);
  color: var(--white-90);
}

.alert-plain .icon {
  color: var(--white-60);
}

/* Alert with close button */
.alert-dismissible {
  padding-right: 48px;
  position: relative;
}

.alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
}

.alert-close .icon {
  font-size: 18px;
}

/* ====================================================================
   COMPONENT: PILLS
   ==================================================================== */

/* Base pill styles */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

/* Small pill (20px height) */
.pill-small {
  height: 20px;
  padding: 0 8px;
  font-size: 14px;
}

/* Faded pills (translucent background with border) */
.pill-faded {
  background-color: var(--bg-200);
  color: var(--white-40);
}

.pill-faded.pill-plain {
  background-color: var(--white-10);
  color: var(--white-60);
}

.pill-faded.pill-plain-light {
  background-color: var(--white-5);
  color: var(--white-60);
}

.pill-faded.pill-plain-dark {
  background-color: var(--bg-200);
  color: var(--white-60);
}

.pill-faded.pill-primary {
  background-color: var(--blue-20);
  color: var(--blue-100);
}

.pill-faded.pill-success {
  background-color: var(--green-20);
  color: var(--green-100);
}

.pill-faded.pill-warning {
  background-color: var(--orange-20);
  color: var(--orange-100);
}

.pill-faded.pill-danger {
  background-color: var(--red-20);
  color: var(--red-100);
}

/* Solid pills (solid background, no border) */
.pill-solid {
  border: none;
}

.pill-solid.pill-plain {
  background-color: var(--white-30);
  color: var(--white-90);
}

.pill-solid.pill-primary {
  background-color: var(--blue-100);
  color: var(--white-90);
}

.pill-solid.pill-success {
  background-color: var(--green-100);
  color: var(--white-90);
}

.pill-solid.pill-warning {
  background-color: var(--orange-100);
  color: var(--white-90);
}

.pill-solid.pill-danger {
  background-color: var(--red-100);
  color: var(--white-90);
}

/* Pill width utilities */
.pill-fixed {
  display: flex;
  min-width: 60px;
  justify-content: center;
}

@media (max-width: 768px) {
  /* Pills responsive adjustments */
  .pill-fixed {
    min-width: 50px;
  }
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */

/* Rotation Animation */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Base Pulsing Border Animation */
.pulse-border {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pulse-border::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(5px);
}

.pulse-border:hover::before {
  opacity: 0.8;
  animation: rotate 6s linear infinite;
}

.pulse-border::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  z-index: 1;
}

/* Make sure button content is above the animation layers */
.btn.pulse-border span,
.btn.pulse-border .icon {
  position: relative;
  z-index: 2;
}

/* White Pulsing Border */
.pulse-white::before {
  background: conic-gradient(
    transparent 0%,
    transparent 30%,
    var(--white-20-s) 40%,
    var(--white-50-s) 50%,
    var(--white-80-s) 55%,
    var(--white-50-s) 60%,
    var(--white-20-s) 70%,
    transparent 80%,
    transparent 100%
  );
}

/* Blue Pulsing Border */
.pulse-blue::before {
  background: conic-gradient(
    transparent 0%,
    transparent 30%,
    var(--blue-100) 40%,
    #4da3e0 50%,
    #66b3e8 55%,
    #4da3e0 60%,
    var(--blue-100) 70%,
    transparent 80%,
    transparent 100%
  );
}

/* ====================================================================
   COMPONENT: CHART CONTAINERS
   ==================================================================== */
