/**
 * BulkCheckbox.css
 *
 * Styles for reusable selection checkbox.
 * Appears on hover or when in selection mode.
 *
 * Phase 7.4c - Shared Bulk Actions Architecture
 */

.bulk-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Visibility states */
.bulk-checkbox--visible {
  opacity: 1;
}

/* Size variants */
.bulk-checkbox--small {
  width: 20px;
  height: 20px;
}

.bulk-checkbox--small .bulk-checkbox__icon {
  font-size: 14px;
}

.bulk-checkbox--medium {
  width: 24px;
  height: 24px;
}

.bulk-checkbox--medium .bulk-checkbox__icon {
  font-size: 18px;
}

.bulk-checkbox--large {
  width: 32px;
  height: 32px;
}

.bulk-checkbox--large .bulk-checkbox__icon {
  font-size: 24px;
}

/* Position variants */
.bulk-checkbox--inline {
  position: relative;
}

.bulk-checkbox--top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.bulk-checkbox--top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}

/* Icon styling */
.bulk-checkbox__icon {
  color: var(--primary-color, #9747ff);
  transition: color 0.15s ease, transform 0.15s ease;
}

.bulk-checkbox__icon--checked {
  color: var(--primary-color, #9747ff);
}

/* Hover effects */
.bulk-checkbox:hover .bulk-checkbox__icon {
  transform: scale(1.1);
}

.bulk-checkbox:active .bulk-checkbox__icon {
  transform: scale(0.95);
}

/* Selected state - stronger color */
.bulk-checkbox--selected .bulk-checkbox__icon {
  color: var(--primary-color, #9747ff);
}

/* Disabled state */
.bulk-checkbox--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus state for keyboard navigation */
.bulk-checkbox:focus {
  outline: none;
}

.bulk-checkbox:focus-visible {
  outline: 2px solid var(--primary-color, #9747ff);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .bulk-checkbox__icon {
    color: var(--primary-color, #9747ff);
  }
}
