:root {
  --bg-light: #f5f5f5;
  --bg-dark: #1e1e2f;
  --card-light: #fff;
  --card-dark: #2c2c3c;
  --text-light: #222;
  --text-dark: #eee;
  --accent: #1976d2;
  --accent-dark: #4dabf5;
  --border-light: #ccc;
  --border-dark: #444;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

#battery-calculator {
  max-width: 700px;
  width: 500px;
  margin: 80px auto 40px;
  padding: 25px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background-color: var(--card-light);
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

#battery-calculator h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#battery-calculator label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

#battery-calculator input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-sizing: border-box;
  background: var(--card-light);
  color: var(--text-light);
  transition: background 0.3s, color 0.3s, border 0.3s;
}

#battery-calculator button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  width: 100%;
  transition: background 0.3s, transform 0.2s;
}

#battery-calculator button:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

.result, .recommendation {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  word-wrap: break-word;
  text-align: center;
  font-weight: bold;
  border: 1px solid var(--border-light);
  background: #f9f9f9;
  color: var(--text-light);
  transition: background 0.3s, color 0.3s, border 0.3s;
}

/* Dark Mode */
body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.dark #battery-calculator {
  background-color: var(--card-dark);
  border: 1px solid var(--border-dark);
}

body.dark #battery-calculator input {
  background-color: var(--card-dark);
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}

body.dark #battery-calculator .result,
body.dark #battery-calculator .recommendation {
  background-color: #3a3a4a;
  color: #eee;
  border: 1px solid #555;
}

body.dark #battery-calculator button {
  background: var(--accent-dark);
}

body.dark #battery-calculator button:hover {
  background: #1976d2;
}



/* הסתרת סקרולר לכל האלמנטים */
* {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* אם רוצים שה-wrapper יהיה גלילתי אבל בלי סקרולר */
#wrapper {
    overflow: auto; /* או overflow-y: auto */
}


