* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #020617);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.delete-btn {
  margin-left: 8px;
  font-size: 0.7rem;
  color: #dc2626;
  cursor: pointer;
}


.chat-container {
  width: 100%;
  max-width: 420px;
  height: 600px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.chat-header {
  padding: 16px;
  background: #020617;
  color: white;
  text-align: center;
}

.chat-header h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
}

.message {
  margin-bottom: 12px;
}

.message span {
  display: block;
}

.message .user {
  font-weight: 600;
  font-size: 0.85rem;
  color: #020617;
}

.message .text {
  background: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 4px;
  max-width: 85%;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.chat-input button {
  background: #020617;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.chat-input button:hover {
  background: #0f172a;
}
