/* Footer persistent */
#mainFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f4f6f8; /* aceeași culoare cu body */
  color: #666; /* text discret */
  padding: 4px 0;
  text-align: center;
  font-size: 12px;
  z-index: 999;
  border-top: 1px solid #ddd;
}

/* Stiluri pentru login */
#loginOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0077b6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loginForm {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  width: 300px;
}
#loginForm h2 {
  margin-top: 0;
  color: #0077b6;
}
#loginForm input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}
#loginForm button {
  background: #0077b6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}
#loginError {
  color: red;
  margin-top: 10px;
  display: none;
}

/* Indicator de sincronizare */
#syncStatus {
  position: fixed;
  bottom: 40px; /* mai sus pentru a nu se suprapune cu footer */
  right: 10px;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 1000;
}
.version {
  font-size: 14px;
  color: #777;
  font-weight: 300;
  margin-left: 8px;
  display: inline-block;
  transform: translateY(-1px); /* Ajustează vertical dacă e nevoie */
}
.synced {
  background: #4CAF50;
  color: white;
}
.syncing {
  background: #FF9800;
  color: white;
}
.error {
  background: #f44336;
  color: white;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding-bottom: 40px; /* spațiu pentru footer */
}
header {
  background: #0077b6;
  padding: 10px;
  display: flex;
  justify-content: center;
}
header button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  margin: 0 15px;
  cursor: pointer;
  padding: 10px;
}
header button.active {
  border-bottom: 3px solid yellow;
}
section {
  display: none;
  padding: 20px;
  text-align: center;
}
section.active {
  display: block;
}
select, input, button {
  font-size: 16px;
  padding: 8px 12px;
  margin: 10px;
}
button {
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.add { background: #4CAF50; color: white; }
.remove { background: #f44336; color: white; }
table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 80%;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
th {
  background: #0077b6;
  color: white;
}
.sup { color: darkorange; font-weight: bold; }
.wsi { color: darkblue; font-weight: bold; }
.isi { color: darkgreen; font-weight: bold; }
.nsi { color: red; font-weight: bold; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(0.7px);
}
.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.modal-content img {
  max-width: 100%;
  margin: 15px 0;
}
.modal-content .buttons button {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#btnJa { background: #4CAF50; color: white; }
#btnNein { background: #f44336; color: white; }

.title {
  display: flex;
  align-items: center;
  justify-content: center; /* scoate dacă vrei align left */
  gap: 10px;
}

.title-icon {
  width: 50px;
  height: 50px;
}

.info-icon {
  cursor: pointer;
  font-size: 16px;
  color: #6c757d;
  margin-left: 4px;
  transition: 0.2s;
}

.info-icon:hover {
  color: #0077b6;
  transform: scale(1.1);
}

.demo-info-text {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* fiecare bloc */
.info-row {
  display: flex;
  flex-direction: column;
}

/* titluri */
.info-row strong {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

/* descriere */
.info-row p {
  margin: 0;
  color: #4b5563;
}
