
body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}
:root {
  --bg: #ffffff;
  --fg: #000000;
  --primary: #004aad;
}
body.dark {
  --bg: #121212;
  --fg: #f1f1f1;
body {
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #0b1a3c; /* fallback */
}

}
#chatIcon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
#darkToggle {
  position: fixed;
  bottom: 90px;
  left: 20px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}
#chatPopup {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 90%;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
}
.chat-header {
  background: var(--primary);
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.chat-body {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  font-size: 14px;
}
#chatPopup input, #chatPopup textarea {
  width: calc(100% - 20px);
  margin: 5px 10px;
  padding: 5px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid #ccc;
}
#chatPopup button {
  margin: 10px;
  padding: 8px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}
