/* public/css/overlay.css */
/* Shell covering the entire viewport */
#overlay-shell {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto;
  background: none;
}
#overlay-shell.overlay-hidden {
  display: none;
}

/* Dark backdrop */
#overlay-shell .overlay-backdrop {
  background: rgba(0, 0, 0, 0.45);
  width: 100%;
  height: 100%;
}

/* Side panel */
#overlay-shell .overlay-panel {
  width: min(560px, 100%);
  height: 100%;
  background: #15161A;
  color: #ddd;
  overflow-y: auto;
  box-shadow: -12px 0 24px rgba(0,0,0,.4);
  padding: 20px 0 0 0;
  position: relative;
	width:400px;
	border:0px red solid;
}

/* Close button */
#overlay-shell .close-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #3a76d2;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Switch row clickable anywhere */
#overlay-shell .switch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 6px 0;
}
#overlay-shell .switch input[type="checkbox"] {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #424654;
  position: relative;
  outline: none;
  transition: background .18s ease;
}
#overlay-shell .switch input[type="checkbox"]:checked {
  background: #3a76d2;
}
#overlay-shell .switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
#overlay-shell .switch input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}
