.tesla-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
    
  }
  
  .login-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-height: 60%;
    width: auto;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  
  .login-box input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  .login-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
  }
  
  .login-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #3a6eff;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
  }
  
  body.dark-mode .login-box {
    background: #333;
    color: white;
  }
  
  body.dark-mode .login-box input {
    background: #444;
    color: white;
    border: 1px solid #555;
  }
  
  #signupModal {
    display: none;
  }
  
  .user-name-display {
    margin-right: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }
  
  body.dark-mode .user-name-display {
    color: #fff;
  }

  .tesla-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .top-icon {
    height: 32px; /* dimensiunea originală înainte de Logout */
    width: auto;
    cursor: pointer;
  }
  
  .user-name-display {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-right: 6px;
  }
  
  body.dark-mode .user-name-display {
    color: #fff;
  }
  
  .login-box label {
    font-weight: 600;
    margin-top: 5px;
    color: #333;
  }
  
  .login-box select,
  .login-box input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  .login-buttons button {
    transition: background-color 0.3s ease;
  }
  
  .login-buttons button:hover {
    background-color: #2a5ee8;
  }
  
  /* Dark mode pentru inputuri generale */
body.dark-mode .login-box input,
body.dark-mode .login-box select {
  background-color: #444;
  color: white;
  border: 1px solid #666;
}

/* Dark mode pentru etichete */
body.dark-mode .login-box label {
  color: white;
}

.signup-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  
}

.signup-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-column label {
  font-weight: 600;
  margin-top: 5px;
}

.signup-column input,
.signup-column select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Dark mode compatibilitate */
body.dark-mode .signup-column input,
body.dark-mode .signup-column select {
  background-color: #444;
  color: white;
  border: 1px solid #666;
}

/* Dimensiuni mai mici pentru inputuri din login */
#loginModal input {
  width: 240px;
  font-size: 14px;
  padding: 8px;
  margin: 0 auto;
  display: block;
}

/* Butoane mai scurte si centrate */
#loginModal .login-buttons button {
  max-width: 120px;
  padding: 8px 12px;
  font-size: 14px;
}

.login-only-box {
  max-width: 320px;
  padding: 24px 20px;
  align-items: center;
}

.login-only-box input {
  width: 100%;
}

.login-only-box .login-buttons {
  justify-content: space-between;
  width: 80%;
  gap: 2px;
}

.signup-column input[type="tel"],
.signup-column input[type="number"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}


/* USER PROFILE MODAL */
#userDataModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#userDataModal .login-box {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  max-width: 90%;
  width: 450px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  margin: auto;
  max-height: 90%;
  top: 0;
  left: 0;
  transform: translate(0%, -3%);
}

#userDataModal h3 {
  margin-bottom: 10px;
  font-size: 22px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 4px;
}

#userDataDisplay {
  max-height: 80%;
}

#userDataDisplay p {
  margin: 5px 0;
  font-size: 15px;
}

#userDataDisplay strong {
  color: #000;
  font-weight: 600;
}

#userDataModal button {
  margin-top: 20px;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #3a6eff;
  color: white;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

#userDataModal button:hover {
  background-color: #2a5ee8;
}

/* Dark mode compatibilitate */
body.dark-mode #userDataModal .login-box {
  background-color: #2b2b2b;
  color: white;
}

body.dark-mode #userDataDisplay strong {
  color: #fff;
}

body.dark-mode #userDataModal button {
  background-color: #4a7dff;
}


#userDataModal .login-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}


.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background-color: #3a6eff;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-buttons button:hover {
  background-color: #2a55d1;
}

/* Form vertical in User Profile */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.edit-form label {
  font-weight: 600;
  color: inherit;
  margin-bottom: 4px;
}

.edit-form .input-group {
  display: flex;
  flex-direction: column;
}

.edit-form input,
.edit-form select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f5f5f5;
}

body.dark-mode .edit-form input,
body.dark-mode .edit-form select {
  background-color: #2b2b2b;
  border-color: #444;
  color: #fff;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
}

.modal-buttons button {
  padding: 10px 28px;
  background-color: #3a6eff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-buttons button:hover {
  background-color: #2c4fd8;
}

/* stil vertical clar */
#editUserFormContainer {
  margin-top: 15px;
}

#editUserForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#editUserForm .form-group {
  display: flex;
  flex-direction: column;
}

#editUserForm label {
  font-weight: bold;
  margin-bottom: 4px;
}

#editUserForm input,
#editUserForm select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Butoane Save & Cancel */
#editUserForm .login-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

#login-only-btn-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

#login-only-form-container {
  gap: 20px;
}