/* Custom Toggle Switch - Lightweight Alternative to Bootstrap Toggle */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
  margin: 0;
}

/* Hide the default checkbox */
.toggle-switch input {
  display: none;
}

/* The toggle slider */
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6c757d; /* Gray - off state */
  border: none;
  border-radius: 26px;
  transition: 0.3s ease;
  cursor: pointer;
}

/* Slider thumb */
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked state */
input:checked + .toggle-slider {
  background-color: #007bff; /* Blue - on state */
}

input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Text labels (optional) */
.toggle-slider-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  user-select: none;
  pointer-events: none;
}

.toggle-slider-label-on {
  color: white;
  left: 6px;
  display: none;
}

.toggle-slider-label-off {
  color: white;
  right: 5px;
  display: block;
}

input:checked + .toggle-slider .toggle-slider-label-on {
  display: block;
}

input:checked + .toggle-slider .toggle-slider-label-off {
  display: none;
}

/* Disabled state */
input:disabled + .toggle-slider {
  background-color: #e9ecef;
  cursor: not-allowed;
}

input:disabled + .toggle-slider::before {
  background-color: #f8f9fa;
}

/* Focus state (accessibility) */
input:focus + .toggle-slider {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Hover state */
.toggle-switch:hover input:not(:disabled) + .toggle-slider {
  opacity: 0.9;
}

/* Sizes */
.toggle-switch.toggle-sm {
  width: 40px;
  height: 22px;
}

.toggle-switch.toggle-sm .toggle-slider::before {
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.toggle-sm input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.toggle-switch.toggle-lg {
  width: 60px;
  height: 30px;
}

.toggle-switch.toggle-lg .toggle-slider::before {
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.toggle-lg input:checked + .toggle-slider::before {
  transform: translateX(30px);
}

/* Color variants */
.toggle-switch input:checked + .toggle-slider.toggle-success {
  background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider.toggle-danger {
  background-color: #dc3545;
}

.toggle-switch input:checked + .toggle-slider.toggle-warning {
  background-color: #ffc107;
}

.toggle-switch input:checked + .toggle-slider.toggle-info {
  background-color: #17a2b8;
}

.toggle-switch input:checked + .toggle-slider.toggle-primary {
  background-color: #007bff;
}

/* Inline with label */
.form-group label .toggle-switch {
  margin-left: 10px;
  margin-right: 10px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.brand-link-logo {
  color: #fff;
  text-decoration: none;
}

.img-old {
  width: 290px;
  height: 160px;
}

/* Stimulus Toast Notifications */
.toast {
  opacity: 0;
  transition: opacity 0.15s linear;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

.toast [data-dismiss="toast"] {
  cursor: pointer;
}
