/* Global Controls CSS */

.global-top-left-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
}

@media (max-width: 768px) {
  .global-top-left-controls {
    top: 15px;
    left: 15px;
    gap: 15px;
  }
}

/* --- Reverted Stretching Back Button --- */
.slurpie-old-back-btn {
  background-color: white;
  text-align: center;
  width: 115px; /* +20% */
  height: 34px; /* +20% */
  border-radius: 10px; /* +20% */
  position: relative;
  color: black;
  font-family: 'Outfit', sans-serif;
  font-size: 12px; /* +20% */
  font-weight: 600;
  cursor: pointer;
  border: none;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.old-back-icon {
  background-color: #4ade80;
  border-radius: 7px; /* +20% */
  height: 29px; /* +20% */
  width: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: 10;
  transition: width 0.5s ease;
}

.slurpie-old-back-btn:hover .old-back-icon {
  width: 110px; /* +20% */
}

.slurpie-old-back-btn p {
  transform: translateX(5px); /* +20% */
  margin: 0;
  position: relative;
  z-index: 5; /* Lower than old-back-icon (z-index 10) so it gets covered */
}

/* Dark Mode Back Button */
body.dark .slurpie-old-back-btn {
  background-color: #2c2c2c;
  color: white;
}

body.dark .slurpie-old-back-btn svg path {
  fill: white;
}

body.dark .old-back-icon {
  background-color: #22c55e;
}

/* --- Premium Theme Toggle --- */
.slurpie-theme-switch {
  position: relative;
  display: inline-block;
  width: 76px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05), 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

body.dark .theme-slider {
  background: rgba(20, 20, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 4px 15px rgba(0,0,0,0.4);
}

.icon-sun, .icon-moon {
  font-size: 16px;
  z-index: 1;
  transition: opacity 0.3s;
}

.icon-moon {
  opacity: 0.3;
}

.icon-sun {
  opacity: 1;
}

.slider-thumb {
  position: absolute;
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 2;
}

body.dark .slider-thumb {
  background-color: #2c2c2c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

input:checked + .theme-slider .slider-thumb {
  transform: translateX(36px);
}

input:checked + .theme-slider .icon-sun {
  opacity: 0.3;
}

input:checked + .theme-slider .icon-moon {
  opacity: 1;
}

.logo-img { max-height: 80px; width: auto; background-color: #F3E5AB; border-radius: 50%; }