/* Service Panels - ascunse implicit */
#serviceSchedulePanel,
#serviceDonePanel,
#serviceIssuesPanel {
  display: none;
  position: absolute;
  left: 1070px;
  width: 380px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

/* Activare */
#serviceSchedulePanel.active,
#serviceDonePanel.active,
#serviceIssuesPanel.active {
  display: block;
}

/* Pozitionare verticala uniforma intre panouri (180px spatiu) */
#serviceSchedulePanel {
  top: 100px;
}

#serviceDonePanel {
  top: 280px;
}

#serviceIssuesPanel {
  top: 460px;
}

/* Titlu sectiune */
#serviceSchedulePanel h4,
#serviceDonePanel h4,
#serviceIssuesPanel h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* Paragraf general */
#serviceSchedulePanel p,
#serviceIssuesPanel p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Buton programare service */
.service-btn {
  padding: 10px 14px;
  background-color: #3a6eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.service-btn:hover {
  background-color: #2f5cd3;
}

/* Dropdown stilizat pentru select */
#doneSelect {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 8px center;
  background-size: 10px 6px;
  appearance: none;
  color: #333;
}

/* Dark Mode */
body.dark-mode #serviceSchedulePanel,
body.dark-mode #serviceDonePanel,
body.dark-mode #serviceIssuesPanel {
  background: #2c2c2c;
  color: #eee;
  border-color: #444;
}

body.dark-mode #doneSelect {
  background: #444 url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #fff;
  border-color: #666;
}

/* Fade in efect animat */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Modal */
.tesla-login-modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.tesla-login-modal .login-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  min-width: 300px;
}
.tesla-login-modal.active {
  display: flex !important;
}
.pin-message {
  color: red;
  font-size: 13px;
  min-height: 18px;
}
.login-buttons button {
  margin: 5px;
  padding: 8px 12px;
  background: #3a6eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.login-buttons button:hover {
  background: #2f5cd3;
}

/* Modal-uri Service */
.tesla-login-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.tesla-login-modal.active {
  display: flex;
}
.login-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
}
.login-box h3 {
  margin-top: 0;
}
.login-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}
.login-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #3a6eff;
  color: #fff;
  cursor: pointer;
}
.login-buttons button:hover {
  background: #2f5cd3;
}
/* Mesaje de eroare / succes */
.pin-message {
  font-size: 13px;
  color: #d00;
  min-height: 1em;
}
/* Scroll lista istoric */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.login-box::-webkit-scrollbar {
  width: 6px;
}
.login-box::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
