html {
  width: 100%;
}

* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  margin: 40px auto;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eee;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: normal;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  margin-top: 25px;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}



#select-battery-chemistry {
  width: 100%;
  padding: 8px 40px 8px 8px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  /* Remove default arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Add custom arrow using inline SVG */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.topbar {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between language selector and logout */
}

.topbar h1 {
  margin: 0;
  font-size: 1.3rem;
}

#language-selector,
.logout-btn {
  height: 28px;              /* same fixed height */
  display: inline-flex;      /* flex to center text + icon */
  align-items: center;
  padding: 0 8px;            /* uniform horizontal padding */
  border-radius: 4px;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  line-height: 1;
}

/* keep specific background styles separate */
#language-selector {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 14px 14px;
  padding-right: 20px; /* for arrow space */
}
.logout-btn {
  background: rgba(255,255,255,0.1);
  margin-top: 0;
  color: #ffffff;
}

.logout-btn:hover { background: rgba(255,255,255,0.2); }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 32px 48px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 500px;
  max-height: 400px;
  overflow-y: auto;
  width: 90%;
  font-size: 1rem;
}

#modal-text {
  margin-bottom: 10px;
  font-weight: bold;
}

#modal-timer {
  color: #555;
  font-size: 0.9rem;
}

.modal-content p {
  margin-bottom: 16px;
  line-height: 1.4;
}

.input-error-label {
  color: red;
  font-size: 0.9em;
  line-height: 1.2;
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;
}

#submit-button {
  transition: background-color 0.3s, opacity 0.3s;
}

#submit-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border: 1px solid #999;
  opacity: 0.7;
}

#login-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border: 1px solid #999;
  opacity: 0.7;
}

#page-subtitle {
  font-size: 1.4rem;        
  font-weight: 700;         
  color: #007bff;           
  margin: 1rem 0 0.25rem;   
   
}

