/* ══════════════════════════════════════
   SHARE / PROJECT MODAL — css/share.css
   ══════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: #161921; color: #e9ecef;
  border-radius: 14px; padding: 22px;
  width: min(420px, 92vw); max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.modal-box h3 { margin: 0 0 6px; font-size: 17px; display:flex; gap:8px; align-items:center; }
.modal-box .muted { color: #8b92a5; font-size: 13px; margin-bottom: 14px; }

.share-link-row { display: flex; gap: 8px; margin-bottom: 16px; }
.share-link-row input {
  flex: 1; background: #0d0f14; border: 1px solid #2d3436;
  border-radius: 8px; padding: 8px 10px; color: #e9ecef; font-size: 12px;
}
.share-link-row button {
  background: #5b8dee; border: none; border-radius: 8px;
  padding: 8px 12px; color: #fff; cursor: pointer;
}

.share-social-row {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.share-social-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, filter .15s ease;
}
.share-social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-social-btn:active { transform: translateY(0); }
.sb-whatsapp  { background: #25d366; }
.sb-telegram  { background: #229ed9; }
.sb-messenger { background: linear-gradient(135deg, #00b2ff, #b900ff); }
.sb-facebook  { background: #1877f2; }
.sb-instagram { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB); }
.sb-more      { background: #2d3436; }

.collaborator-list { margin-bottom: 14px; }

.share-invite-row { display: flex; gap: 8px; margin-bottom: 6px; }
.share-invite-row input {
  flex: 1; background: #0d0f14; border: 1px solid #2d3436;
  border-radius: 8px; padding: 8px 10px; color: #e9ecef; font-size: 12.5px;
}
.share-invite-row input:focus { outline: none; border-color: #5b8dee; }
.share-invite-row button {
  background: #5b8dee; border: none; border-radius: 8px;
  padding: 8px 14px; color: #fff; cursor: pointer; font-size: 12.5px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.share-invite-row button:disabled { opacity: .6; cursor: default; }
.share-invite-msg { font-size: 11.5px; min-height: 15px; margin-bottom: 10px; }
.share-invite-msg.success { color: #10c98f; }
.share-invite-msg.error   { color: #ef4444; }

.share-divider {
  text-align: center; font-size: 11px; color: #6b7280;
  margin: 4px 0 12px; position: relative;
}
.share-divider::before, .share-divider::after {
  content: ''; position: absolute; top: 50%; width: 38%;
  height: 1px; background: #2d3436;
}
.share-divider::before { left: 0; }
.share-divider::after  { right: 0; }

.collaborator-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; background: #1e2230; margin-bottom: 6px;
}
.collaborator-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #2d3446;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #e9ecef; overflow: hidden; flex-shrink: 0;
}
.collaborator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.collaborator-info { flex: 1; min-width: 0; }
.collaborator-name { font-size: 13px; font-weight: 600; color: #e9ecef; }
.collaborator-name i { color: #feca57; font-size: 11px; margin-left: 4px; }
.collaborator-username { font-size: 11px; color: #8b92a5; }
.collaborator-remove-btn {
  background: none; border: none; color: #8b92a5; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.collaborator-remove-btn:hover { background: rgba(239,68,68,.15); color: #ef4444; }

.project-list-body { max-height: 50vh; overflow-y: auto; margin-bottom: 14px; }

.pl-tabs {
  display: flex; gap: 6px; margin-bottom: 14px;
  background: #0d0f14; border-radius: 10px; padding: 4px;
}
.pl-tab-btn {
  flex: 1; background: none; border: none; border-radius: 8px;
  padding: 8px 6px; color: #8b92a5; font-size: 12px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.pl-tab-btn i { font-size: 11px; }
.pl-tab-btn.active { background: #5b8dee; color: #fff; }
.pl-tab-btn:not(.active):hover { color: #e9ecef; }

.project-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  background: #1e2230; margin-bottom: 6px;
}
.project-row:hover { background: #252a3a; }
.project-row-name { flex: 1; }
.badge-count {
  font-size: 11px; background: #2d3436; padding: 2px 8px; border-radius: 10px;
}

.modal-close-btn {
  width: 100%; padding: 10px; border-radius: 8px; border: none;
  background: #2d3436; color: #e9ecef; cursor: pointer;
}

#reloadAvailableBadge.hidden { display: none; }

/* ── Project Menu Dropdown (navbar) ── */
.project-menu-wrap { position: relative; }
#btnProjectMenu { position: relative; }
#reloadDot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #5b8dee;
}
#reloadDot.hidden { display: none; }

.project-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 230px; background: #161921; color: #e9ecef;
  border: 1px solid #2d3436; border-radius: 12px;
  padding: 6px; z-index: 999;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.project-menu-dropdown.hidden { display: none; }

.pm-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; white-space: nowrap;
}
.pm-item:hover { background: #1e2230; }
.pm-item.hidden { display: none; }

.pm-sep { height: 1px; background: #2d3436; margin: 6px 2px; }

.pm-status-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 11px; color: #8b92a5;
}
