* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, system-ui;
}

body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: white;
}

/* GLASS EFFECT */
.glass {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-header {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.typing {
  font-size: 12px;
  opacity: 0.7;
  padding-left: 14px;
}

.messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}

.message {
  background: rgba(30, 41, 59, 0.7);
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  max-width: 75%;
}

.message.self {
  background: rgba(37, 99, 235, 0.85);
  margin-left: auto;
}

.message img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 6px;
}

/* INPUT FIX — VERY IMPORTANT */
.input-area {
  display: flex;
  padding: 10px;
  gap: 8px;
}

.input-area input {
  flex: 1;
  padding: 12px;
  border-radius: 20px;
  border: none;
  outline: none;

  background-color: rgba(2, 6, 23, 0.9);
  color: #ffffff !important;
  caret-color: #ffffff;
  -webkit-text-fill-color: #ffffff;

  font-size: 16px;
}

.input-area button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
