/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #0a0f0a, #001000);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #caffca;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  flex-direction: column;
}

/* Tela login */
.login-screen {
  background: #0d290d;
  padding: 30px 35px;
  border-radius: 15px;
  box-shadow: 0 0 25px #00ff00aa;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  user-select: none;
}

.login-screen h2 {
  text-align: center;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00cc;
  font-weight: 800;
  font-size: 1.6rem;
}

.login-screen input {
  background: #001a00;
  border: 2px solid #00cc00;
  border-radius: 8px;
  padding: 12px 14px;
  color: #baffba;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-screen input:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 8px #00ff00cc;
}

.login-screen button {
  background: #00cc00;
  border: none;
  color: #002200;
  font-weight: 800;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 15px #00ff00bb;
  transition: background-color 0.3s ease;
}

.login-screen button:hover {
  background: #00ff00;
}

.error-msg {
  color: #ff4444;
  font-weight: 700;
  font-size: 0.9rem;
  height: 20px;
  text-align: center;
  user-select: none;
}

/* Esconde elementos com a classe hidden */
.hidden {
  display: none !important;
}

/* Mod Menu */

.mod-menu {
  background: #0d290d;
  border-radius: 15px;
  box-shadow: 0 0 20px #0aff00aa;
  width: 420px;
  max-width: 90vw;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

header h1 {
  text-align: center;
  font-weight: 900;
  font-size: 1.9rem;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00aa;
  user-select: none;
}

.ip-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #a6ffa6;
}

.ip-input-wrapper {
  display: flex;
  gap: 10px;
}

.ip-input-wrapper input {
  flex-grow: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 2px solid #00cc00;
  background: #001a00;
  color: #baffba;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.ip-input-wrapper input:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 6px #00ff00cc;
}

.ip-input-wrapper button {
  background: #00cc00;
  border: none;
  border-radius: 6px;
  color: #002200;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 0 8px #00ff00aa;
  transition: background-color 0.25s ease;
}

.ip-input-wrapper button:hover {
  background: #00ff00;
}

.status {
  margin-top: 6px;
  font-weight: 600;
  min-height: 20px;
  user-select: none;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-item {
  background: #003300;
  border-radius: 10px;
  box-shadow: inset 0 0 12px #007700aa;
  overflow: hidden;
}

.menu-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 20px;
  font-size: 1.1rem;
  color: #aaffaa;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: #005500aa;
}

.arrow {
  transition: transform 0.3s ease;
}

.menu-item.open .arrow {
  transform: rotate(90deg);
}

.submenu {
  display: none;
  flex-direction: column;
  padding: 10px 20px 20px 20px;
  gap: 12px;
  background: #002200;
}

.menu-item.open .submenu {
  display: flex;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #baffba;
  font-weight: 600;
  gap: 8px;
}

.submenu-btn {
  background: #007700cc;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  color: #d0ffd0;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.submenu-btn:hover {
  background: #00cc00;
}

/* Switch toggle */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #eee;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00ff00;
  box-shadow: 0 0 8px #00ff00bb;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Range sliders */

.option input[type="range"] {
  width: 120px;
  accent-color: #00ff00;
  cursor: pointer;
}

.range-value {
  min-width: 35px;
  text-align: right;
  color: #baffba;
  font-weight: 600;
}

/* Botões Reset e Clear */

#reset-btn,
#clear-status-btn {
  background: #bb2222cc;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

#reset-btn:hover,
#clear-status-btn:hover {
  background: #ff4444;
}

