/**
 * Input Filter Styling for dashboardr
 * 
 * Modern, clean input components with size variants
 */

/* ============================================
   FONT - Override Choices.js CDN styles to use dashboard theme font
   ============================================ */
.choices,
.choices *,
.choices__inner,
.choices__list,
.choices__list--dropdown,
.choices__list--single,
.choices__list--multiple,
.choices__item,
.choices__placeholder,
.choices__input,
.choices__button,
.choices [class*="choices"] {
  font-family: inherit !important;
}

/* Ensure sidebar inputs inherit font */
.sidebar input,
.sidebar select,
.sidebar label,
.sidebar .choices,
.sidebar .choices * {
  font-family: inherit !important;
}

/* ============================================
   INPUT ROW LAYOUT
   ============================================ */

.dashboardr-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: visible;
}

.dashboardr-input-row.align-center {
  justify-content: center;
}

.dashboardr-input-row.align-left {
  justify-content: flex-start;
}

.dashboardr-input-row.align-right {
  justify-content: flex-end;
}

/* Inline variant - compact, no background */
.dashboardr-input-row.inline {
  padding: 0.75rem 0;
  gap: 1.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
}

/* ============================================
   INPUT GROUP - FLEXIBLE SIZING
   ============================================ */

.dashboardr-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  overflow: visible;
  position: relative;
}

/* Let inline styles control width when specified */
.dashboardr-input-row .dashboardr-input-group {
  flex: 0 0 auto;
}

.dashboardr-input-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.125rem;
  letter-spacing: -0.01em;
}

/* Help text */
.dashboardr-input-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ============================================
   SIZE VARIANTS
   ============================================ */

/* Small size */
.dashboardr-input-group.size-sm .dashboardr-input-label {
  font-size: 0.75rem;
}

.dashboardr-input-group.size-sm .dashboardr-input,
.dashboardr-input-group.size-sm .dashboardr-text-input,
.dashboardr-input-group.size-sm .dashboardr-number-input {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.dashboardr-input-group.size-sm .dashboardr-checkbox-mark,
.dashboardr-input-group.size-sm .dashboardr-radio-mark {
  width: 16px;
  height: 16px;
}

.dashboardr-input-group.size-sm .dashboardr-checkbox-text,
.dashboardr-input-group.size-sm .dashboardr-radio-text {
  font-size: 13px;
}

.dashboardr-input-group.size-sm .dashboardr-switch {
  width: 40px;
  height: 22px;
}

.dashboardr-input-group.size-sm .dashboardr-switch-slider::before {
  width: 16px;
  height: 16px;
}

.dashboardr-input-group.size-sm .dashboardr-switch input:checked + .dashboardr-switch-slider::before {
  transform: translateX(18px);
}

/* Large size */
.dashboardr-input-group.size-lg .dashboardr-input-label {
  font-size: 0.9375rem;
}

.dashboardr-input-group.size-lg .dashboardr-input,
.dashboardr-input-group.size-lg .dashboardr-text-input,
.dashboardr-input-group.size-lg .dashboardr-number-input {
  min-height: 50px;
  padding: 12px 16px;
  font-size: 16px;
}

.dashboardr-input-group.size-lg .dashboardr-checkbox-mark,
.dashboardr-input-group.size-lg .dashboardr-radio-mark {
  width: 24px;
  height: 24px;
}

.dashboardr-input-group.size-lg .dashboardr-checkbox-text,
.dashboardr-input-group.size-lg .dashboardr-radio-text {
  font-size: 16px;
}

.dashboardr-input-group.size-lg .dashboardr-switch {
  width: 56px;
  height: 30px;
}

.dashboardr-input-group.size-lg .dashboardr-switch-slider::before {
  width: 24px;
  height: 24px;
}

.dashboardr-input-group.size-lg .dashboardr-switch input:checked + .dashboardr-switch-slider::before {
  transform: translateX(26px);
}

/* ============================================
   DISABLED STATE
   ============================================ */

.dashboardr-input:disabled,
.dashboardr-text-input:disabled,
.dashboardr-number-input:disabled,
.dashboardr-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

.dashboardr-checkbox input:disabled + .dashboardr-checkbox-mark,
.dashboardr-radio input:disabled + .dashboardr-radio-mark {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboardr-switch input:disabled + .dashboardr-switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboardr-button-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   CHOICES.JS - MODERN CLEAN STYLE
   ============================================ */

/* Main container */
.dashboardr-choices.choices {
  margin-bottom: 0;
  font-size: 14px;
  width: 100%;
}

/* The input box */
.dashboardr-choices .choices__inner {
  min-height: 42px;
  padding: 6px 36px 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Chevron arrow */
.dashboardr-choices .choices__inner::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #6b7280;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.dashboardr-choices.is-open .choices__inner::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Focus/hover states */
.dashboardr-choices .choices__inner:hover {
  border-color: #9ca3af;
}

.dashboardr-choices.is-focused .choices__inner,
.dashboardr-choices.is-open .choices__inner {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* ============================================
   SELECTED ITEMS (TAGS) - UNIFORM SIZE
   ============================================ */

.dashboardr-choices .choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

.dashboardr-choices .choices__list--multiple .choices__item {
  display: inline-flex;
  align-items: center;
  height: 26px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0 8px 0 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #1e40af;
  line-height: 1;
  white-space: nowrap;
}

.dashboardr-choices .choices__list--multiple .choices__item.is-highlighted {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

/* Remove button (X) */
.dashboardr-choices .choices__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  background-image: none;
  color: #3b82f6;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.15s ease;
}

.dashboardr-choices .choices__button::after {
  content: '×';
  font-weight: 600;
}

.dashboardr-choices .choices__button:hover {
  opacity: 1;
  background-color: #ef4444;
  color: #fff;
}

.dashboardr-choices .choices__button > svg,
.dashboardr-choices .choices__button > img {
  display: none;
}

/* ============================================
   DROPDOWN LIST
   ============================================ */

.dashboardr-choices .choices__list--dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin-top: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-height: 280px;
  overflow-y: auto;
}

.dashboardr-choices.is-open .choices__inner {
  border-radius: 8px;
}

/* Dropdown items */
.dashboardr-choices .choices__list--dropdown .choices__item {
  padding: 10px 14px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.dashboardr-choices .choices__list--dropdown .choices__item:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

/* Optgroup styling */
.dashboardr-choices .choices__list--dropdown .choices__group .choices__heading {
  font-weight: 600;
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px 6px;
  border-bottom: none;
}

/* Hover state */
.dashboardr-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #3b82f6;
  color: #fff;
}

/* Selected item in dropdown */
.dashboardr-choices .choices__list--dropdown .choices__item--selectable.is-selected {
  background-color: #eff6ff;
  color: #1e40af;
  font-weight: 500;
}

.dashboardr-choices .choices__list--dropdown .choices__item--selectable.is-selected::before {
  content: '✓ ';
  font-weight: 700;
}

.dashboardr-choices .choices__list--dropdown .choices__item--selectable.is-selected.is-highlighted {
  background-color: #3b82f6;
  color: #fff;
}

.dashboardr-choices .choices__list--dropdown .choices__item--selectable.is-selected.is-highlighted::before {
  color: #fff;
}

/* Search input */
.dashboardr-choices .choices__input {
  background-color: transparent;
  padding: 4px 0;
  margin-bottom: 0;
  font-size: 14px;
  border: none;
  min-width: 60px;
  flex: 1;
}

.dashboardr-choices .choices__input:focus {
  outline: none;
}

.dashboardr-choices .choices__input::placeholder {
  color: #9ca3af;
}

/* Placeholder */
.dashboardr-choices .choices__placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* No results */
.dashboardr-choices .choices__list--dropdown .choices__item--choice.has-no-results {
  color: #9ca3af;
  font-style: italic;
  padding: 14px;
}

/* ============================================
   NATIVE SELECT FALLBACK
   ============================================ */

.dashboardr-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboardr-input:hover {
  border-color: #9ca3af;
}

.dashboardr-input:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dashboardr-input[multiple] {
  min-height: 100px;
}

/* ============================================
   TEXT INPUT
   ============================================ */

.dashboardr-text-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboardr-text-input:hover {
  border-color: #9ca3af;
}

.dashboardr-text-input:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dashboardr-text-input::placeholder {
  color: #9ca3af;
}

/* ============================================
   NUMBER INPUT
   ============================================ */

.dashboardr-number-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboardr-number-input:hover {
  border-color: #9ca3af;
}

.dashboardr-number-input:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hide spinner arrows for cleaner look */
.dashboardr-number-input::-webkit-outer-spin-button,
.dashboardr-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dashboardr-number-input[type=number] {
  -moz-appearance: textfield;
}

/* ============================================
   BUTTON GROUP (Segmented Control)
   ============================================ */

.dashboardr-button-group {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.dashboardr-button-option {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background-color: #fff;
  border: none;
  border-right: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dashboardr-button-option:last-child {
  border-right: none;
}

.dashboardr-button-option:hover {
  background-color: #f3f4f6;
}

.dashboardr-button-option.active {
  background-color: #3b82f6;
  color: #fff;
}

.dashboardr-button-option.active:hover {
  background-color: #2563eb;
}

.dashboardr-button-option:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Small size button group */
.size-sm .dashboardr-button-option {
  padding: 6px 12px;
  font-size: 13px;
}

/* Large size button group */
.size-lg .dashboardr-button-option {
  padding: 14px 20px;
  font-size: 16px;
}

/* ============================================
   RESET BUTTON
   ============================================ */

.dashboardr-reset-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboardr-reset-button:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.dashboardr-reset-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dashboardr-reset-button.size-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.dashboardr-reset-button.size-lg {
  padding: 14px 24px;
  font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .dashboardr-input-row {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .dashboardr-input-group {
    width: 100%;
    max-width: 100%;
  }
  
  .dashboardr-button-group {
    flex-wrap: wrap;
  }
}

/* ============================================
   SINGLE SELECT VARIANT
   ============================================ */

.dashboardr-choices.single-select .choices__inner {
  padding-right: 36px;
}

.dashboardr-choices.single-select .choices__item {
  padding-right: 0;
}

/* Hide default Choices.js arrow - we use our own CSS arrow */
.dashboardr-choices .choices__list--single::after,
.dashboardr-choices[data-type="select-one"]::after {
  display: none !important;
}

/* Also hide any SVG arrows Choices.js might add */
.dashboardr-choices .choices__inner svg,
.dashboardr-choices .choices__list--single svg {
  display: none !important;
}

/* ============================================
   CHECKBOX INPUTS
   ============================================ */

.dashboardr-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboardr-checkbox-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
}

/* Stacked layout: checkbox above label */
.dashboardr-checkbox-group.stacked {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px 24px !important;
  width: 100% !important;
}

/* Stacked with grid layout (ncol/nrow specified) */
.dashboardr-checkbox-group.stacked.stacked-grid {
  display: grid !important;
  gap: 16px 24px !important;
  width: 100% !important;
  justify-items: center !important;
}

/* Group alignment for stacked checkboxes */
.dashboardr-checkbox-group.stacked.group-left {
  justify-content: flex-start !important;
}
.dashboardr-checkbox-group.stacked.group-center {
  justify-content: center !important;
}
.dashboardr-checkbox-group.stacked.group-right {
  justify-content: flex-end !important;
}

.dashboardr-checkbox-group.stacked .dashboardr-checkbox {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  text-align: center !important;
}

.dashboardr-checkbox-group.stacked .dashboardr-checkbox-mark {
  order: 1 !important;
}

.dashboardr-checkbox-group.stacked .dashboardr-checkbox-text {
  order: 2 !important;
  font-size: 12px !important;
  max-width: 100px !important;
  word-wrap: break-word !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Stacked alignment variants */
.dashboardr-checkbox-group.stacked.align-left .dashboardr-checkbox {
  align-items: flex-start !important;
}
.dashboardr-checkbox-group.stacked.align-left .dashboardr-checkbox-text {
  text-align: left !important;
}

.dashboardr-checkbox-group.stacked.align-center .dashboardr-checkbox {
  align-items: center !important;
}
.dashboardr-checkbox-group.stacked.align-center .dashboardr-checkbox-text {
  text-align: center !important;
}

.dashboardr-checkbox-group.stacked.align-right .dashboardr-checkbox {
  align-items: flex-end !important;
}
.dashboardr-checkbox-group.stacked.align-right .dashboardr-checkbox-text {
  text-align: right !important;
}

/* Grid layouts for checkbox groups */
.dashboardr-checkbox-group.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.dashboardr-checkbox-group.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

.dashboardr-checkbox-group.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
}

/* Compact text for grid layouts */
.dashboardr-checkbox-group[class*="grid-"] .dashboardr-checkbox-text {
  font-size: 13px;
}

/* Responsive: collapse to fewer columns on narrow containers */
@media (max-width: 400px) {
  .dashboardr-checkbox-group.grid-3,
  .dashboardr-checkbox-group.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 280px) {
  .dashboardr-checkbox-group.grid-2,
  .dashboardr-checkbox-group.grid-3,
  .dashboardr-checkbox-group.grid-4 {
    grid-template-columns: 1fr;
  }
}

.dashboardr-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #374151;
  transition: color 0.15s ease;
}

.dashboardr-checkbox:hover {
  color: #1f2937;
}

.dashboardr-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dashboardr-checkbox-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dashboardr-checkbox-mark::after {
  content: '';
  display: none;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.dashboardr-checkbox input:checked + .dashboardr-checkbox-mark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.dashboardr-checkbox input:checked + .dashboardr-checkbox-mark::after {
  display: block;
}

.dashboardr-checkbox input:focus + .dashboardr-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dashboardr-checkbox:hover .dashboardr-checkbox-mark {
  border-color: #9ca3af;
}

.dashboardr-checkbox input:checked:hover + .dashboardr-checkbox-mark {
  background-color: #2563eb;
  border-color: #2563eb;
}

.dashboardr-checkbox-text {
  line-height: 1.4;
}

/* ============================================
   RADIO BUTTON INPUTS
   ============================================ */

.dashboardr-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboardr-radio-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
}

/* Stacked layout: dot above label */
.dashboardr-radio-group.stacked {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px 24px !important;
  width: 100% !important;
}

/* Stacked with grid layout (ncol/nrow specified) */
.dashboardr-radio-group.stacked.stacked-grid {
  display: grid !important;
  gap: 16px 24px !important;
  width: 100% !important;
  justify-items: center !important;
}

/* Group alignment for stacked radio buttons */
.dashboardr-radio-group.stacked.group-left {
  justify-content: flex-start !important;
}
.dashboardr-radio-group.stacked.group-center {
  justify-content: center !important;
}
.dashboardr-radio-group.stacked.group-right {
  justify-content: flex-end !important;
}

.dashboardr-radio-group.stacked .dashboardr-radio {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  text-align: center !important;
}

.dashboardr-radio-group.stacked .dashboardr-radio-mark {
  order: 1 !important;
}

.dashboardr-radio-group.stacked .dashboardr-radio-text {
  order: 2 !important;
  font-size: 12px !important;
  max-width: 100px !important;
  word-wrap: break-word !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Stacked alignment variants */
.dashboardr-radio-group.stacked.align-left .dashboardr-radio {
  align-items: flex-start !important;
}
.dashboardr-radio-group.stacked.align-left .dashboardr-radio-text {
  text-align: left !important;
}

.dashboardr-radio-group.stacked.align-center .dashboardr-radio {
  align-items: center !important;
}
.dashboardr-radio-group.stacked.align-center .dashboardr-radio-text {
  text-align: center !important;
}

.dashboardr-radio-group.stacked.align-right .dashboardr-radio {
  align-items: flex-end !important;
}
.dashboardr-radio-group.stacked.align-right .dashboardr-radio-text {
  text-align: right !important;
}

/* Grid layouts for radio groups */
.dashboardr-radio-group.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.dashboardr-radio-group.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

.dashboardr-radio-group.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
}

/* Compact text for grid layouts */
.dashboardr-radio-group[class*="grid-"] .dashboardr-radio-text {
  font-size: 13px;
}

.dashboardr-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #374151;
  transition: color 0.15s ease;
}

.dashboardr-radio:hover {
  color: #1f2937;
}

.dashboardr-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dashboardr-radio-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dashboardr-radio-mark::after {
  content: '';
  display: none;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
}

.dashboardr-radio input:checked + .dashboardr-radio-mark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.dashboardr-radio input:checked + .dashboardr-radio-mark::after {
  display: block;
}

.dashboardr-radio input:focus + .dashboardr-radio-mark {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dashboardr-radio:hover .dashboardr-radio-mark {
  border-color: #9ca3af;
}

.dashboardr-radio input:checked:hover + .dashboardr-radio-mark {
  background-color: #2563eb;
  border-color: #2563eb;
}

.dashboardr-radio-text {
  line-height: 1.4;
}

/* ============================================
   SWITCH / TOGGLE INPUTS
   ============================================ */

.dashboardr-switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.dashboardr-switch-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.dashboardr-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.dashboardr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dashboardr-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  border-radius: 26px;
  transition: all 0.25s ease;
}

.dashboardr-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dashboardr-switch input:checked + .dashboardr-switch-slider {
  background-color: #3b82f6;
}

.dashboardr-switch input:checked + .dashboardr-switch-slider::before {
  transform: translateX(22px);
}

.dashboardr-switch input:focus + .dashboardr-switch-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dashboardr-switch:hover .dashboardr-switch-slider {
  background-color: #9ca3af;
}

.dashboardr-switch input:checked:hover + .dashboardr-switch-slider {
  background-color: #2563eb;
}

/* ============================================
   SLIDER / RANGE INPUTS
   ============================================ */

.dashboardr-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dashboardr-slider-value {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  background-color: #eff6ff;
  padding: 2px 10px;
  border-radius: 12px;
  min-width: 40px;
  text-align: center;
}

.dashboardr-slider-container {
  position: relative;
  padding-bottom: 20px;
}

.dashboardr-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--slider-percent, 0%), #e5e7eb var(--slider-percent, 0%), #e5e7eb 100%);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background 0.1s ease;
}

.dashboardr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dashboardr-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.dashboardr-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dashboardr-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.dashboardr-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dashboardr-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dashboardr-slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 6px;
}

.dashboardr-slider-ticks span {
  font-size: 11px;
  color: #9ca3af;
}

/* ============================================
   INPUT GROUP ADJUSTMENTS FOR SPECIAL TYPES
   ============================================ */

/* Checkbox and radio groups may need flexible width */
.dashboardr-input-group:has(.dashboardr-checkbox-group),
.dashboardr-input-group:has(.dashboardr-radio-group) {
  width: auto;
  min-width: auto;
  max-width: none;
}

/* But stacked groups in sidebar need full width for centering */
.sidebar .dashboardr-input-group:has(.dashboardr-checkbox-group.stacked),
.sidebar .dashboardr-input-group:has(.dashboardr-radio-group.stacked) {
  width: 100% !important;
}

/* ============================================
   SIDEBAR-SPECIFIC INPUT FIXES
   ============================================ */

/* Ensure inputs fit within sidebar */
.sidebar .dashboardr-input-group,
.sidebar .dashboardr-checkbox-group,
.sidebar .dashboardr-radio-group {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Sidebar inline groups should wrap nicely */
.sidebar .dashboardr-checkbox-group.inline,
.sidebar .dashboardr-radio-group.inline {
  max-width: 100%;
}

/* Radio/checkbox text in sidebar shouldn't overflow */
.sidebar .dashboardr-radio-text,
.sidebar .dashboardr-checkbox-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Switch container auto width and vertical centering */
.dashboardr-input-group:has(.dashboardr-switch-container) {
  width: auto;
  min-width: auto;
  max-width: none;
  justify-content: center;
  align-self: center;
  min-height: 64px;
}

/* Make switch row items vertically centered */
.dashboardr-input-row:has(.dashboardr-switch-container) {
  align-items: center;
}

/* Slider needs reasonable width */
.dashboardr-input-group:has(.dashboardr-slider-container) {
  min-width: 200px;
}

/* Button group auto width */
.dashboardr-input-group:has(.dashboardr-button-group) {
  width: auto;
  min-width: auto;
  max-width: none;
}
