@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --font-primary: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f1f1f1;
  color: #7B2CFF;
}

.hero {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;           
  padding: 0 16px;       
  box-sizing: border-box;
}

.velvet-logo {
  max-height: 180px;   
  width: auto;
  display: flex;
  align-items: center;
}

.velvet-logo {
  transform: translateY(-1px);
}

.hero-icons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-icons img {
  width: 26px;
  height: 26px;
}

.hero-icons img:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .hero {
    height: 90px;
    padding: 0 12px;
  }

  .velvet-logo {
    width: 150px;
    height: 150px;
  }

  .hero-icons img {
    width: 22px;
    height: 22px;
  }
}

/* ===============================
   SEPARADORES UNIFICADOS (FORÇA)
================================ */
.chat-header {
  border-bottom: 1px solid #C9C9C9 !important;
}

.chat-input {
  border-top: 1px solid #C9C9C9 !important;
}

#msgInput {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff !important;
    border: 1px solid #C9C9C9 !important;
    font-size: 13px;
    line-height: normal;
}
/* ===============================
   INBOX
================================ */
.inbox {
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ===============================
   ITEM DO CHAT
================================ */
.chat-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #C9C9C9;
  cursor: pointer;
}

.chat-item:hover {
  background: #F6F4FF;
}

/* ===============================
   AVATAR
================================ */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #9E6BFF;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   CORPO DO CHAT
================================ */
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

/* ===============================
   LINHA SUPERIOR
================================ */
.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-name {
  font-size: 15px;
  font-weight: 600;
  color: #1E1E26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 12px;
  color: #C9C9C9;
  white-space: nowrap;
}

/* ===============================
   LINHA INFERIOR
================================ */
.chat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chat-last {
  flex: 1;
  font-size: 13px;
  color: #5a5a64;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   STATUS / BADGES
================================ */
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ✓ enviado */
.status-sent {
  font-size: 14px;
  color: #C9C9C9;
  font-weight: 600;
}

/* ✓✓ lido */
.status-read {
  font-size: 14px;
  color: #7B2CFF;
  font-weight: 700;
}

/* Necessita resposta */
.status-reply {
  font-size: 11px;
  font-weight: 600;
  background: #7B2CFF;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Não visto */
.status-unseen {
  font-size: 11px;
  font-weight: 600;
  background: #C9C9C9;
  color: #1E1E26;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* espaço extra para não cobrir a lista */
.inbox {
  padding-bottom: 72px;
}

.inbox {
  padding-top: 8px;
}
