/* ================================
   TalkAlways — Minimal Zen Chat UI
   ================================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #2e2e2e;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ================= Landing Page ================= */
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.landing-page {
  text-align: center;
  padding: 2rem;
}

.logo-container {
  margin-bottom: 2rem;
}

.logo-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.circle {
  width: 40px;
  height: 40px;
  border: 3px solid #2e2e2e;
  border-radius: 50%;
}

.wave-line {
  width: 40px;
  height: 3px;
  background: #2e2e2e;
  border-radius: 3px;
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-tagline {
  color: #555;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== Form ===== */
.auth-form {
  max-width: 320px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #2e2e2e;
  box-shadow: 0 0 0 2px rgba(46, 46, 46, 0.1);
}

.btn {
  cursor: pointer;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-full {
  width: 100%;
  padding: 0.9rem;
}

.btn-primary {
  background: #2e2e2e;
  color: #fff;
}

.btn-primary:hover {
  background: #1f1f1f;
}

.btn-secondary {
  background: #eee;
  color: #2e2e2e;
}

.btn-secondary:hover {
  background: #ddd;
}

/* ================= Chat Room ================= */
#chat-room {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== Header ===== */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.room-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.room-stats {
  font-size: 0.9rem;
  color: #777;
}

/* ===== Messages ===== */
.chat-messages {
  flex: 1;
  padding: 2rem 2rem 1rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fff;
  scroll-behavior: smooth;
}

/* Message bubbles */
.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: fadeIn 0.25s ease-in;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.username {
  font-weight: 600;
  color: #1f1f1f;
}

.timestamp {
  font-size: 0.8rem;
  color: #a1a1a1;
}

.message-text {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  line-height: 1.55;
  color: #2b2b2b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.message.me {
  align-self: flex-end;
}

.message.me .message-text {
  background: #2f2f2f;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.message.other {
  align-self: flex-start;
}

.message.other .message-text {
  background: #f1f1f1;
  border-bottom-left-radius: 6px;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* ===== Input ===== */
.chat-input-container {
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem;
  background: #fafafa;
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 1rem;
  line-height: 1.4;
}

.chat-input:focus {
  outline: none;
  border-color: #2e2e2e;
  box-shadow: 0 0 0 2px rgba(46,46,46,0.1);
}

.send-button {
  background: #2e2e2e;
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
}

.send-button:hover {
  background: #1f1f1f;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #888;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(3px);}
  to {opacity: 1; transform: translateY(0);}
}
