* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0d1117;
  color: #e6edf3;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-container {
  width: 100%;
  max-width: 500px;
  height: 90vh;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
  padding: 20px;
  background: #21262d;
  border-bottom: 1px solid #30363d;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #238636;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 0 10px #238636;
}

.chat-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.chat-header p {
  font-size: 0.8rem;
  color: #8b949e;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.msg.received {
  background: #30363d;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.sent {
  background: #238636;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 20px;
  background: #161b22;
  border-top: 1px solid #30363d;
  display: flex;
  gap: 10px;
}

#msg-input {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px;
  color: white;
  outline: none;
}

#msg-input:focus {
  border-color: #58a6ff;
}

#send-btn {
  background: #238636;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#send-btn:hover {
  background: #2ea043;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 10px;
}