/**
 * @copyright Stevie-Ray
 * Checkbox Component - shadcn/ui inspired
 */
/**
 * @copyright Stevie-Ray
 * Global Color System - Neutral Palette
 * CSS Custom Properties for consistent theming
 */
/* ===========================================
   CSS CUSTOM PROPERTIES - ROOT
   =========================================== */
:root {
  /* Neutral Color Palette */
  --neutral: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;
  /* Semantic Color Mappings */
  --background: var(--neutral-50);
  --foreground: var(--neutral-900);
  --muted: var(--neutral-100);
  --muted-foreground: var(--neutral-600);
  --border: var(--neutral-200);
  --input: var(--neutral-100);
  --ring: var(--neutral-400);
  /* Brand Colors */
  --primary: hsl(221.2 83.2% 53.3%);
  --primary-foreground: hsl(210 40% 98%);
  --secondary: var(--neutral-100);
  --secondary-foreground: var(--neutral-900);
  --accent: var(--neutral-100);
  --accent-foreground: var(--neutral-900);
  /* Status Colors */
  --destructive: #FF80AB;
  --destructive-foreground: #000000;
  --success: #CCFF90;
  --success-foreground: #000000;
  --warning: #FFAB40;
  --warning-foreground: #000000;
  --info: #82B1FF;
  --info-foreground: #000000;
  /* Sidebar Specific Colors */
  --sidebar-bg: var(--neutral-50);
  --sidebar-border: var(--neutral-200);
  --sidebar-foreground: var(--neutral-900);
  --sidebar-muted: var(--neutral-600);
  --sidebar-accent: var(--neutral-100);
  --sidebar-accent-foreground: var(--neutral-900);
  --sidebar-hover: var(--neutral-100);
  --sidebar-active-bg: var(--neutral-100);
  --sidebar-active-foreground: var(--neutral-900);
}

/* ===========================================
   SCSS VARIABLES FOR BACKWARDS COMPATIBILITY
   =========================================== */
input[type=checkbox], input[type=radio] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}
input[type=checkbox]:checked, input[type=radio]:checked {
  background-color: hsl(221.2, 83.2%, 53.3%);
  border-color: hsl(221.2, 83.2%, 53.3%);
}
input[type=checkbox]:checked::after, input[type=radio]:checked::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
input[type=checkbox]:disabled, input[type=radio]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #e5e5e5;
  border-color: #e5e5e5;
}
input[type=checkbox]:disabled::after, input[type=radio]:disabled::after {
  border-color: #525252;
}
input[type=checkbox]:disabled:checked, input[type=radio]:disabled:checked {
  background-color: #525252;
  border-color: #525252;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-group .checkbox-label {
  cursor: pointer;
  user-select: none;
}
.checkbox-group .checkbox-label.checkbox-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input[type=checkbox]:indeterminate {
  background-color: hsl(221.2, 83.2%, 53.3%);
  border-color: hsl(221.2, 83.2%, 53.3%);
}
input[type=checkbox]:indeterminate::after {
  content: "";
  display: block;
  width: 6px;
  height: 2px;
  background-color: hsl(210, 40%, 98%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
input[type=checkbox]:indeterminate:disabled {
  background-color: #525252;
  border-color: #525252;
}
input[type=checkbox]:indeterminate:disabled::after {
  background-color: #e5e5e5;
}

input[type=checkbox].checkbox-sm, input[type=radio].checkbox-sm {
  width: 0.875rem;
  height: 0.875rem;
}
input[type=checkbox].checkbox-sm:checked::after, input[type=radio].checkbox-sm:checked::after {
  width: 10px;
  height: 10px;
}
input[type=checkbox].checkbox-sm:indeterminate::after, input[type=radio].checkbox-sm:indeterminate::after {
  width: 4px;
  height: 2px;
}

input[type=checkbox].checkbox-lg, input[type=radio].checkbox-lg {
  width: 1.25rem;
  height: 1.25rem;
}
input[type=checkbox].checkbox-lg:checked::after, input[type=radio].checkbox-lg:checked::after {
  width: 14px;
  height: 14px;
}
input[type=checkbox].checkbox-lg:indeterminate::after, input[type=radio].checkbox-lg:indeterminate::after {
  width: 8px;
  height: 2px;
}

input[type=checkbox].checkbox-valid {
  border-color: #CCFF90;
}

input[type=checkbox].checkbox-invalid {
  border-color: #FF80AB;
}

/*# sourceMappingURL=checkbox.css.map */
