/* resources/css/chat.css */
/* Scope every rule under .gd-chat so nothing outside chat is touched */

.gd-chat .gd-msg {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  align-items: flex-end;
}

.gd-chat .gd-msg.mine { justify-content: flex-end; }

.gd-chat .gd-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 28px;
}

.gd-chat .gd-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f7f9;
  border: 1px solid #eef1f4;
  box-shadow: 0 1px 1px rgba(0,0,0,.03);
}

.gd-chat .gd-msg.mine .gd-bubble {
  background: #eaf7ef;      /* soft green for mine */
  border-color: #d2f0da;
}

.gd-chat .gd-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.gd-chat .gd-attachment {
  width: 160px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* keep images inside bubbles tidy (doesn't affect global images) */
.gd-chat .gd-bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* =========================================
   Wider chat column + bubbles on big screens
   ========================================= */

@media (min-width: 1200px) {
  /* Let the messages area use the full width of the chat column */
  .gd-chat .gd-messages {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Make each bubble take more of that width */
  .gd-chat .gd-msg.mine .gd-bubble,
  .gd-chat .gd-msg.theirs .gd-bubble {
    max-width: 80% !important;  /* bump to 85–90% if you want even wider */
  }
}
