/* Improved Form Elements Styling */

/* Modern Checkbox Styling */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #293241;
  border-radius: 4px;
  outline: none;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #293241;
  border-color: #293241;
}

input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 12px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(41, 50, 65, 0.2);
}

/* Checkbox Group Styling */
.checkbox-group {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.checkbox-group label {
  margin-left: 8px !important;
  font-weight: normal !important;
  font-size: 14px !important;
  cursor: pointer;
}

/* Checkbox Label Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.checkbox-label .checkmark {
  /* Empty span for custom checkbox styling if needed */
}

/* Switch/Toggle Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2CBEF4;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2CBEF4;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Login page form-check styling */
.form-check {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.form-check input[type="checkbox"] {
  margin-right: 8px;
}

.form-check label {
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
}

/* Status toggle label */
.toggle-label {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.toggle-label span {
  margin-left: 8px;
  font-size: 14px;
  font-weight: normal;
}