/* Toggle Switch Component */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569; /* slate-600 */
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid #334155; /* slate-700 */
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #94a3b8; /* slate-400 */
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6; /* blue-500 */
    border-color: #2563eb; /* blue-600 */
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hover effect */
.toggle-slider:hover {
    background-color: #64748b; /* slate-500 */
}

.toggle-switch input:checked + .toggle-slider:hover {
    background-color: #2563eb; /* blue-600 */
}

/* Small toggle variant */
.toggle-switch {
  width: 32px;
  height: 18px;
}

.toggle-slider:before {
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 1px;
}

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