/* Reusable component styles */

.file-info {
  background: var(--drag-item-bg);
  padding: 8px;
  border-radius: 2px;
  border-left: 3px solid var(--primary);
}

.file-info p {
  margin: 0;
  font-size: 0.9em;
}

.file-info .error {
  color: #d32f2f;
  font-weight: 600;
}

.radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: var(--surface-hover);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0.125rem;
  width: 100%;
  font-size: 13px;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  color: var(--text-dim);
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.radio-inputs .radio input:checked + .name {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #121212;
  font-weight: 600;
}

.radio-inputs .radio input:focus-visible + .name {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom Checkbox Styling */
.checkBox {
  display: block;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 0px 2px var(--primary);
}

.checkBox div {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  top: -52px;
  left: -52px;
  position: absolute;
  transform: rotateZ(45deg);
  z-index: 100;
}

.checkBox input[type="checkbox"]:checked + div {
  left: -10px;
  top: -10px;
}

.checkBox input[type="checkbox"] {
  position: absolute;
  left: 50px;
  visibility: hidden;
}

.transition {
  transition: 300ms ease;
}

.checkBox-small {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border-width: 2px;
}

.checkBox-small div {
  width: 40px;
  height: 40px;
  top: -35px;
  left: -35px;
}

.checkBox-small input[type="checkbox"]:checked + div {
  left: -7px;
  top: -7px;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
