body { background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%); color: #1f2937; }
.goaj-main { max-width: 1480px; }
.profile-pic { object-fit: cover; }
.profile-pic-lg { width: 200px; height: 200px; border-radius: 1rem; }
.profile-pic-sm { width: 60px; height: 60px; border-radius: 50%; }
.message-list { max-height: 60vh; overflow-y: auto; }
.message { padding: .5rem .75rem; border-radius: 12px; margin-bottom: .5rem; max-width: 80%; }
.message-self { background: #0d6efd; color: white; margin-left: auto; }
.message-other { background: #e9ecef; }
.sticky-input { position: sticky; bottom: 0; background: #fff; padding-top: .5rem; padding-bottom: env(safe-area-inset-bottom, 0); }
.feed-sidebar, .profile-sidebar { top: 1rem; }
.feed-card .card-body { padding: 1.15rem; }
.feed-content { white-space: pre-wrap; word-break: break-word; font-size: 1.02rem; line-height: 1.55; }
.reaction-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.reaction-btn { border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 999px; }
.reaction-btn.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.profile-edit-shell .card, .feed-shell .card { border: 0; box-shadow: 0 .35rem 1.25rem rgba(15, 23, 42, .08); }
.form-control, .form-select { min-height: 2.75rem; }
@media (max-width: 575.98px) {
  .profile-pic-lg { width: 140px; height: 140px; }
}
/* Hide desktop chat dock below the lg breakpoint — use full-page inbox on mobile/tablet */
@media (max-width: 991.98px) {
  #chatDock { display: none !important; }
}

/* ── Desktop chat popup dock ──────────────────────────────────────────── */
#chatDock {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1050;
  display: flex; flex-direction: row; align-items: flex-end; gap: .75rem;
}
.chat-toggle-btn {
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  flex-shrink: 0; position: relative; box-shadow: 0 4px 12px rgba(13,110,253,.45);
  display: flex; align-items: center; justify-content: center;
}
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: #dc3545; color: #fff;
  border-radius: 999px; font-size: .65rem; font-weight: 700;
  padding: 2px 5px; min-width: 18px; text-align: center; line-height: 1.4;
}
.chat-panel {
  width: 300px; background: #fff;
  border-radius: .85rem .85rem 0 0;
  box-shadow: 0 .5rem 2rem rgba(0,0,0,.22);
  overflow: hidden; display: flex; flex-direction: column;
}
.chat-panel-header {
  background: #0d6efd; color: #fff;
  padding: .6rem .85rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; flex-shrink: 0;
}
.chat-panel-header .chat-header-btn {
  background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 1.1rem; line-height: 1; padding: 0 .2rem; cursor: pointer;
}
.chat-panel-header .chat-header-btn:hover { color: #fff; }
/* Inbox panel */
.chat-inbox-list { overflow-y: auto; flex: 1; max-height: 380px; }
.chat-inbox-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .85rem; cursor: pointer;
  border-bottom: 1px solid #f1f3f5; transition: background .1s;
}
.chat-inbox-item:last-child { border-bottom: 0; }
.chat-inbox-item:hover { background: #f8f9fa; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #6c757d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.chat-meta { flex: 1; min-width: 0; }
.chat-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-preview { font-size: .75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-item.has-unread .chat-name { color: #0d6efd; }
.chat-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0d6efd; flex-shrink: 0;
}
/* Chat window */
.chat-window-messages {
  flex: 1; overflow-y: auto; padding: .6rem;
  display: flex; flex-direction: column; gap: .35rem;
  min-height: 230px; max-height: 310px;
  background: #f8f9fa;
}
.chat-window-input {
  display: flex; gap: .4rem; padding: .5rem .6rem;
  border-top: 1px solid #e9ecef; background: #fff; flex-shrink: 0;
}
.chat-window-input input { border-radius: 999px; font-size: .85rem; }
.chat-window-input button { border-radius: 999px; flex-shrink: 0; }
.chat-panel.minimized .chat-window-messages,
.chat-panel.minimized .chat-window-input { display: none; }
.cw-msg {
  padding: .35rem .7rem; border-radius: 16px;
  max-width: 85%; font-size: .85rem; line-height: 1.4; word-break: break-word;
}
.cw-msg.cw-self { background: #0d6efd; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.cw-msg.cw-other { background: #e9ecef; color: #1f2937; border-bottom-left-radius: 4px; }

/* Global left navigation sidebar (authenticated, lg+ only) */
.goaj-sidebar {
  position: sticky;
  top: 1rem;
}
.goaj-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #1f2937;
  font-weight: 500;
  transition: background-color 0.15s ease;
}
.goaj-sidebar .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0d6efd;
}
.goaj-sidebar .nav-link.active {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-weight: 600;
}
.goaj-sidebar .nav-link i {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

/* Notification dropdown panel */
.notif-panel {
  min-width: 380px;
  max-width: 440px;
  z-index: 1050;
}
@media (max-width: 575.98px) {
  .notif-panel { min-width: 300px; max-width: calc(100vw - 1rem); }
}
.notif-list { max-height: 420px; }
.notif-item { color: inherit; border-radius: 0; transition: background-color 0.12s; }
.notif-item:hover { background-color: #f0f2f5; color: inherit; }
.notif-item.notif-unread { background-color: #ebf3ff; }
.notif-item.notif-unread:hover { background-color: #d8eaff; }
.notif-tab-btn { color: #65676b; }
.notif-tab-btn.active { background-color: #e8f0fe; color: #0d6efd; font-weight: 600; }
/* Remove dropdown arrow from notification toggle */
.notif-toggle::after { display: none; }

/* Drag-and-drop image upload — visual feedback */
[data-drop-zone].drag-over {
  outline: 2px dashed #0d6efd;
  outline-offset: -2px;
  border-radius: 0.375rem;
  background-color: rgba(13, 110, 253, 0.04);
}

/* Lightbox — clickable post/reply images */
img[data-lightbox] { cursor: zoom-in; }
