/* Stil chat UI inspirat din aplicații moderne */

.chat-console {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 360px;
  height: 480px;
  background: rgba(0, 0, 0, 0.35); /* 🔸 TRANSPARENT */
  backdrop-filter: blur(14px);     /* 🔸 BLUR PE FUNDAL */
  color: white;
  font-family: 'Segoe UI', sans-serif;
  border-top-right-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: transparent;
  color: white;
  padding: 16px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
   background: linear-gradient(to bottom, rgba(5, 0, 36, 0.742),rgba(6, 0, 37, 0.742),rgba(8, 0, 53, 0.742), rgba(8, 0, 53, 0.742));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-log .user {
  align-self: flex-end;
  background: #fff;
  color: #333;
  padding: 10px 14px;
  border-radius: 18px 18px 0 18px;
  max-width: 75%;
  font-size: 14px;
}

.chat-log .bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  color: rgb(0, 0, 0);
  padding: 10px 14px;
  border-radius: 18px 18px 18px 0;
  max-width: 75%;
  font-size: 14px;
}

#chat-input {
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffffb6;
  color: rgb(0, 0, 0);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

.chat-log .user {
  align-self: flex-end;
  background: #fff;
  color: #333;
  padding: 10px 14px;
  border-radius: 18px 18px 0 18px;
  max-width: 75%;
  font-size: 14px;
  white-space: pre-wrap;
}

.chat-log .bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 0;
  max-width: 75%;
  font-size: 14px;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

.auth-status {
  font-size: 12px;
  background: #1bff80;
  color: black;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 10px;
  vertical-align: middle;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.control-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  padding: 24px;
  color: white;
  border-radius: 12px;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.control-popup.hidden {
  display: none;
}
.control-popup input {
  display: block;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 6px;
  width: 100%;
  background: #333;
  color: white;
  border: 1px solid #555;
}
.control-popup button {
  background: #4a8;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.city-light {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 180, 0.7) 0%,
    rgba(255, 255, 120, 0.4) 40%,
    rgba(255, 255, 0, 0.2) 70%,
    rgba(255, 255, 0, 0) 100%
  );
  box-shadow: 0 0 20px rgba(255, 255, 150, 0.6);
}

.light-coord-list {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-family: monospace;
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10000;
}

#control-panel {
  position: flex;
  top: 100; /* ridicat deasupra consolei */
  left: 180px;
  background: #111;
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  z-index: 9999;
  width: 300px;
  height: 40%;
}


#control-panel table {
  width: 100%;
  margin-bottom: 12px;
  border-collapse: collapse;
  color: white;
  font-size: 13px;
}
#control-panel th, #control-panel td {
  border-bottom: 1px solid #444;
  padding: 6px;
  text-align: center;
}
#control-panel input[type="number"] {
  width: 60px;
  background: #333;
  border: 1px solid #555;
  color: white;
  padding: 4px;
  text-align: center;
}
#add-light, #save-lights {
  margin-right: 10px;
  margin-top: 6px;
  background: #3c9;
  border: none;
  padding: 8px 12px;
  color: black;
  border-radius: 6px;
  cursor: pointer;
}
#add-light:hover, #save-lights:hover {
  background: #2a7;
}
