body {
  font-family: "Segoe UI", sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 20px;
  color: #333;
}
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.tabs button {
  background-color: #00796b;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.tabs button.active,
.tabs button:hover {
  background-color: #004d40;
}
.container {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: direction 0.3s ease;
  min-height: 500px; /* To avoid footer jumping */
}
h2,
h3 {
  text-align: center;
  color: #00796b;
}
h3 {
  margin-top: 5px;
  margin-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}
label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}
input,
select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
.result,
.results {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px 18px;
  background: #e0f7fa;
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.9;
  color: #004d40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  white-space: pre-wrap;
}

.lang-switch {
  text-align: center;
  margin-bottom: 20px;
}
.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 40px;
  margin: 4px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #00796b;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lang-switch button:hover,
.lang-switch button.active {
  background-color: #004d40;
}
.lang-switch button img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* Solar tab specific styles */
.solar-inputs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.solar-column {
  flex: 1;
  min-width: 250px;
}
.solar-column:first-child {
  max-height: 450px;
  overflow-y: auto;
  padding: 5px;
}

.load-entry {
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 10px;
  background-color: #fcfcfc;
}
.load-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.load-entry-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.load-entry-header label {
  margin: 0;
  font-size: 16px;
}
.load-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 15px 5px 5px 5px;
  margin-top: 10px;
  border-top: 1px dashed #ccc;
}
.hidden {
  display: none;
}
.load-inputs .input-group {
  flex: 1;
  min-width: 80px;
}
.load-inputs .input-group label {
  font-size: 13px;
  margin-top: 0;
  font-weight: normal;
}
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #666;
}
/* footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  color: #555;
  font-size: 14px;
} */
.visitor-counter {
  font-weight: bold;
  color: #004d40; /* نفس لون عدادك المفضل */
  background-color: #e0f2f1;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 16px;
}

@media (max-width: 600px) {
  .solar-column:first-child {
    max-height: 350px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
}
