:root {
  --bg-light: #f0f0f0;
  --widget-bg-light: #ffffff;
  --text-light: #333333;
  --text-secondary-light: #555555;
  --border-light: #cccccc;
  --button-light: #007bff;
  --button-hover-light: #0056b3;    
  --wave-color-light: rgba(255, 255, 255, 0.3);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: black;
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.loaded {
  background-color: var(--bg-light);
}

/* Base styles */
.widget {
  max-width: 675px;
  margin: 3rem auto;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  background-color: var(--widget-bg-light);
  transition: background-color 0.3s;
}

.error-message {
display: none;
align-self: center;
text-align: center;
}

.input-group {
  margin-bottom: 1.5rem;
}

.extra-inputs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.extra-input {
  flex: 1;
  min-width: 180px;
}

.extra-input label {
  margin-bottom: 0.375rem;
  font-size: 1.35rem;
}

.extra-input select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background-color: var(--widget-bg-light);
  color: var(--text-light);
  outline-style: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, filter 0.3s;
  font-size: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

input {
  width: 95%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--widget-bg-light);
  color: var(--text-light);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  font-size: 1.2rem;
}

button {
  width: 100%;
  padding: 1.125rem;
  background-color: var(--button-light);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.35rem;
}

button:disabled {
  filter: grayscale(0.5);
}

button:hover {
  background-color: var(--button-hover-light);
}

.menu-icon {
  position: fixed;
  right: 30px;
  top: 30px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.menu-icon img,
.menu-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-icon:hover {
  transform: rotate(0deg) scale(1.1);
}

.menu-icon.active {
  transform: rotate(90deg);
}

.menu-icon.active:hover {
  transform: rotate(90deg) scale(1.1);
}

.settings-panel {
  position: fixed;
  right: -360px;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #f5f5f5;
  padding: 30px;
  padding-top: 60px;
  box-shadow: -3px 0 7.5px rgba(0,0,0,0.1);
  transition: 0.3s;
  z-index: 2;
}

.settings-panel h2 {
  margin-bottom: 0rem;
  font-size: 1.8rem;
}

.settings-panel.open {
  right: 0;
}

.setting-item {
  margin: 22.5px 0;
  max-width: 225px;
}

.setting-item select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background-color: var(--widget-bg-light);
  color: var(--text-light);
  outline-style: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  font-size: 1.2rem;
}

.setting-item input {
  max-width: 89%;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  z-index: 1;
}

.footer p {
  font-size: 1.35rem;
  margin: 0.75rem 0;
}

.footer a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.35rem;
}

.footer a:hover {
  color: var(--button-hover-light);
}

.progress-bar {
width: 100%;
background-color: var(--widget-bg-light);
border-radius: 6px;
overflow: hidden;
margin-top: 1.5rem;
transition: background-color 0.3s;
}

.progress {
height: 1.5rem;
background-color: var(--button-light);
width: 0;
transition: width 0.3s, background-color 0.3s;
}

.wave-container {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
overflow: hidden;
z-index: -1;
}

.wave {
position: absolute;
width: 200%;
height: 200%;
background: linear-gradient(
  45deg,
  var(--wave-color-light) 0%,
  var(--wave-color-dark) 100%
);
opacity: 0.5;
border-radius: 40%;
animation: wave 120s infinite linear;
transform-origin: 50% 48%;
bottom: -100%;
}

.wave2 {
animation: wave 240s infinite linear;
opacity: 0.3;
}

.wave3 {
animation: wave 200s infinite linear;
opacity: 0.2;
}

.wave4 {
animation: wave 100s infinite linear;
opacity: 0.1;
}

@keyframes wave {
from {
  transform: rotate(0deg);
}
to {
  transform: rotate(360deg);
}
}

@media (prefers-color-scheme: dark) {
.wave {
  background: linear-gradient(
    45deg,
    var(--wave-color-dark) 0%,
    var(--wave-color-light) 100%
  );
}
}

/* Mobile styles - must come after base styles to override them */
@media (max-width: 500px) {
  .widget {
      position: relative;
      max-width: 450px;
      margin: 2rem auto;
      padding: 2rem;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .input-group {
      margin-bottom: 1rem;
  }

  .extra-inputs-container {
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
  }

  .extra-input {
      width: 100%;
      min-width: auto;
  }

  .extra-input label {
      margin-bottom: 0.25rem;
      font-size: 0.9rem;
  }

  .extra-input select {
      padding: 0.5rem;
      border-radius: 4px;
      font-size: 0.9rem;
  }

  label {
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
  }

  input {
      width: 95%;
      padding: 0.5rem;
      border-radius: 4px;
      font-size: 0.9rem;
  }

  button {
      width: 100%;
      padding: 0.75rem;
      border-radius: 4px;
      margin-top: 1rem;
      font-size: 0.9rem;
  }

  .menu-icon {
      position: absolute;
      right: 20px;
      top: 40px;
      width: 40px;
      height: 40px;
  }

  .menu-icon img,
  .menu-icon svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }

  .settings-panel {
      right: -240px;
      width: 200px;
      padding: 20px;
      padding-top: 40px;
      box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  }

  .settings-panel h2 {
      font-size: 1.2rem;
      margin-bottom: 0rem;
  }

  .setting-item {
      margin: 15px 0;
      max-width: 150px;
  }

  .setting-item select {
      padding: 0.5rem;
      border-radius: 4px;
      font-size: 0.9rem;
  }

  .footer {
      margin-top: 2rem;
  }

  .footer p, .footer a {
      font-size: 0.9rem;
      margin: 0.5rem 0;
  }

  .progress-bar {
      border-radius: 4px;
      margin-top: 1rem;
  }

  .progress {
      height: 1rem;
  }

  h1 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
  }

  .error-message {
      font-size: 0.9rem;
  }
}