/* Trip Chat — admin quick-reply to guest portal group chat */

/* ── Dashboard card ── */
.tc-card { border-left: 3px solid var(--ws-accent, #2AABDB); }
.tc-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.tc-card-title {
  font-weight: 700; font-size: 14px; color: var(--ws-text-primary, #F0F4F8);
  display: flex; align-items: center; gap: 8px;
}
.tc-card-count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(42, 171, 219, 0.16); color: var(--ws-accent, #2AABDB);
}

.tc-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 8px; border-radius: 10px;
  cursor: pointer; transition: background 0.15s ease;
}
.tc-row:hover, .tc-row:focus-visible { background: var(--row-hover, rgba(42, 171, 219, 0.07)); }
.tc-row:focus-visible { outline: 2px solid var(--ws-accent, #2AABDB); outline-offset: -2px; }
.tc-row + .tc-row { border-top: 1px solid var(--ws-border, rgba(42, 171, 219, 0.15)); }

.tc-row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tc-row-name { font-weight: 600; font-size: 13.5px; color: var(--ws-text-primary, #F0F4F8); }
.tc-row-preview {
  font-size: 12px; color: var(--ws-text-muted, #94A3B8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tc-row-preview.tc-empty { font-style: italic; }

.tc-row-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tc-row-time { font-size: 11px; color: var(--ws-text-muted, #94A3B8); white-space: nowrap; }

.tc-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E8483A; flex-shrink: 0;
  box-shadow: 0 0 0 rgba(232, 72, 58, 0.4);
  animation: tc-pulse 2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .tc-unread-dot { animation: none; } }
@keyframes tc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 72, 58, 0.35); }
  70%  { box-shadow: 0 0 0 6px rgba(232, 72, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 72, 58, 0); }
}

.tc-reply-btn {
  min-height: 32px; padding: 0 12px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600;
}

/* ── Reply modal thread ── */
.tc-thread {
  display: flex; flex-direction: column; gap: 12px;
  padding: 4px 2px 8px;
}
.tc-thread-empty {
  text-align: center; padding: 32px 16px;
  color: var(--ws-text-muted, #94A3B8); font-size: 13px;
}

.tc-msg { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
.tc-msg-guest { align-self: flex-start; align-items: flex-start; }
.tc-msg-leader { align-self: flex-end; align-items: flex-end; }

.tc-msg-name {
  font-size: 11px; font-weight: 600; padding: 0 4px;
  color: var(--ws-text-secondary, #8DDBE6);
}
.tc-msg-leader .tc-msg-name { color: var(--ws-accent, #2AABDB); }

.tc-bubble {
  padding: 9px 13px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5; word-break: break-word;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.07));
}
.tc-bubble-guest {
  background: var(--ws-bg-elevated, #1E3A4A);
  border: 1px solid var(--ws-border, rgba(42, 171, 219, 0.15));
  color: var(--ws-text-primary, #F0F4F8);
  border-bottom-left-radius: 4px;
}
.tc-bubble-leader {
  background: linear-gradient(160deg, var(--ws-accent, #2AABDB), var(--ws-accent-dark, #1593AD));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tc-bubble-time {
  display: block; margin-top: 4px;
  font-size: 10px; opacity: 0.7;
}

/* ── Reply input ── */
.tc-input-row {
  display: flex; gap: 8px; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--ws-border, rgba(42, 171, 219, 0.15));
}
.tc-input {
  flex: 1; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--ws-border, rgba(42, 171, 219, 0.15));
  background: var(--ws-bg-elevated, #1E3A4A); color: var(--ws-text-primary, #F0F4F8);
  font-family: var(--font-body); font-size: 13.5px;
  transition: border-color 0.15s ease;
}
.tc-input:focus {
  outline: none;
  border-color: var(--input-focus-border, rgba(42, 171, 219, 0.5));
}
.tc-send-btn {
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; flex-shrink: 0;
}
