/* 
  Animated checkbox component styles
*/
.animated-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  position: relative;

  &:hover .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

.checkbox-original {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-soft, #323232);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--easing-bounce);
  margin-right: 15px;
  flex-shrink: 0;
  position: relative;

  &.checked {
    background-color: var(--primary-color, #ffc896);
    border-color: var(--primary-color, #ffc896);
    box-shadow: 0 0 10px rgba(255, 200, 150, 0.2);
  }
}

.checkmark-icon {
  width: 18px;
  height: 18px;
}

.checkmark {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  opacity: 0;
  transition: stroke-dashoffset 0.3s ease;

  &.checked {
    stroke-dashoffset: 0;
    opacity: 1;
    animation: checkmarkAnimation 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
}

.checkbox-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; // Ensures text-overflow works properly
}

.checkbox-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-sublabel {
  font-size: 12px;
  color: var(--text-muted);
}

// Animation for the checkmark
@keyframes checkmarkAnimation {
  0% {
    stroke-dashoffset: 30;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
