/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(160deg, #fce4ec, #e8d5f5, #dceefb);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* ===== MAIN CARD ===== */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== BRAND ===== */
.brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.2rem;
  color: #c06b8a;
}

.brand-sub {
  font-size: 13px;
  color: #a47b8a;
}

/* ===== HEADERS ===== */
.inbox-header {
  text-align: center;
  margin-bottom: 1rem;
}

.inbox-title {
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  color: #c06b8a;
}

.inbox-sub {
  font-size: 13px;
  color: #a47b8a;
}

/* ===== INPUTS ===== */
.form-group {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #f0d0dc;
  background: white;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #c06b8a;
}

/* ===== TEXTAREA ===== */
textarea {
  min-height: 100px;
  resize: none;
}

/* ===== BUTTON ===== */
.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8a0b8, #c06b8a);
  color: white;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ===== NAVIGATION ===== */
.nav-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nav-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f0c4d3;
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-btn:hover {
  background: #fff5f8;
}

.nav-btn.danger {
  color: #c04060;
}

/* ===== DIVIDER ===== */
.soft-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #f0d0dc;
}

/* ===== LIST ===== */
.messages-list {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 4px;
}

/* ===== MESSAGE BUBBLE ===== */
.message-bubble {
  background: white;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  transition: 0.2s ease;
}

.message-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.message-date {
  font-size: 11px;
  color: gray;
  text-align: right;
  margin-top: 6px;
}

/* ===== REACTIONS ===== */
.reaction-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.reaction-row button {
  border: 1px solid #f0c4d3;
  background: white;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
}

.active-reaction {
  background: #fce8f0 !important;
  border-color: #c06b8a !important;
  color: #c06b8a;
}

/* ===== STATUS TEXT ===== */
.small-status {
  text-align: center;
  font-size: 12px;
  margin-top: 6px;
  color: #a47b8a;
}

/* ===== SCROLLBAR ===== */
.messages-list::-webkit-scrollbar {
  width: 6px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: #e8a0b8;
  border-radius: 999px;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  body {
    align-items: flex-start;
  }

  .auth-wrapper {
    padding: 1.5rem;
  }

  .nav-row {
    flex-direction: column;
  }

  .messages-list {
    max-height: 430px;
  }
}