* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  height: 100%;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: black;
}

.chat-header {
  background: black;
  color: white;
  font-weight: 500;
  border-bottom: 1px solid #171617;
  padding: 15px;
  font-size: 18px;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
}

.message {
  max-width: 100%;
  padding: 10px;
  color: white;
  inline-size: 100vw;
  overflow-wrap: break-word;
}

.sent,.received {
  background: black;
  white-space: pre-wrap;
}

a {
  text-decoration: none;
  color: #07A7F3;
}

a:hover {
  text-decoration: underline;
}

span {
  color: #ffffff;
  opacity: 0.45;
  font-size: 13px;
}

pre {
  position: relative;
}

pre .copy-btn {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 8px;
  color: white;
  right: 8px;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

pre .copy-btn:hover {
  opacity: 0.7;
}

pre code {
  font-family: "Fira Code", monospace;
  font-size: 13px;
}

/*Override Hljs*/
.hljs {
  border-radius: 10px;
}

.inline-code {
  background: #141318;
}

.system {
  font-weight: 500;
  color: white;
  background: #11124B;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: black;
  border-top: 1px solid #171617;
}

.chat-input textarea {
  flex: 1;
  color: white;
  height: 40px;
  background: #131419;
  text-align: left;
  font-size: 15px;
  resize: none;
  padding: 10px;
  border: 2px solid #171617;
  border-radius: 100px;
  outline: none;
}

.chat-input button {
  display: flex;
  transition: all 0.15s ease;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  border: none;
  border-radius: 100%;
  background: #131419;
  cursor: pointer;
  width: 50px;
  height: 50px;
}

/* Overlay background */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;

  justify-content: center;
  align-items: center;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Show popup */
.popup.active {
  display: flex;
}

/* Popup box */
.popup-content {
  background: #222222;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  inline-size: 100vw;
  overflow-wrap: break-word;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

  animation: popupFade 0.2s ease;
}

/* Text styles */
.popup-content h1 {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* Buttons */
.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-actions button,
.popup-actions a {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Cancel button */
.popup-actions button {
  background: #ddd;
}

.popup-actions button:hover {
  color: white;
  transform: scale(1.1);
  background: #ff2d2d;
}

.popup-actions a:hover {
  transform: scale(1.1);
}

/* Confirm link */
.popup-actions a {
  background: #2e60ff;
  color: white;
}

/* Animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}