/* Eldorado.gg Design System for Untrackables Staff Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #111215;
  --bg-sidebar: #111215;
  --bg-header: #111215;
  --bg-panel: #18191e;
  --bg-panel-secondary: #1f2127;
  --bg-input: #202229;
  --bg-hover: #262832;
  --border-color: #262832;
  --border-light: #323542;
  --color-yellow: #ffb700;
  --color-yellow-hover: #e5a500;
  --color-blue-bubble: #2f68fd;
  --color-grey-bubble: #2b2d35;
  --text-main: #ffffff;
  --text-secondary: #8e929b;
  --text-muted: #646874;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #14151a;
}
::-webkit-scrollbar-thumb {
  background: #2a2c36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c3f4e;
}

/* Eldorado Navigation Sidebar Active Item */
.sidebar-item-active {
  background-color: var(--color-yellow) !important;
  color: #111215 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}
.sidebar-item-active svg,
.sidebar-item-active i,
.sidebar-item-active span {
  color: #111215 !important;
}

/* Pill Tabs */
.filter-pill {
  background-color: #202229;
  color: #8e929b;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.filter-pill:hover {
  background-color: #282a33;
  color: #ffffff;
}
.filter-pill.active {
  background-color: var(--color-yellow) !important;
  color: #111215 !important;
  font-weight: 700;
}

/* Status Badges */
.badge-pending {
  background-color: #ffeaa7;
  color: #111215;
  font-weight: 700;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-in-progress {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-cancelled {
  background-color: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
  font-weight: 600;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-disputed {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Eldorado Buttons */
.btn-yellow {
  background-color: var(--color-yellow);
  color: #111215;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-yellow:hover {
  background-color: var(--color-yellow-hover);
}

.btn-dark {
  background-color: #23252d;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12.5px;
  border: 1px solid #333644;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-dark:hover {
  background-color: #2b2e38;
  border-color: #424656;
}

/* ========================================================
   ELDORADO.GG AUTHENTIC CHAT MESSAGE STYLES (COMPACT)
   ======================================================== */

.chat-message-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 2px;
  width: 100%;
}

.chat-message-row.buyer-row {
  justify-content: flex-start;
}

.chat-message-row.seller-row {
  justify-content: flex-end;
}

/* Base Bubble Structure: Sleek, compact, perfectly proportioned */
.bubble-seller, .bubble-buyer {
  position: relative;
  max-width: 62%;
  width: fit-content;
  min-width: 42px;
  padding: 4px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Seller Bubble: Blue */
.bubble-seller {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 9px 9px 2px 9px;
}

/* Buyer Bubble: Dark Grey */
.bubble-buyer {
  background-color: #272a34;
  color: #ffffff;
  border-radius: 9px 9px 9px 2px;
}

/* Bubble Content Layout: text + timestamp inline when short, wraps cleanly when long */
.bubble-content-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.bubble-msg-text {
  flex: 1 1 auto;
  color: #ffffff;
  font-size: 11.5px;
  line-height: 1.35;
}

/* Message Timestamp (Inside Bubble) - No underlines, subtle grey */
.bubble-meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  margin-left: auto;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.bubble-meta.buyer-meta {
  color: rgba(255, 255, 255, 0.45);
}

.bubble-meta.seller-meta {
  color: rgba(255, 255, 255, 0.75);
}

.bubble-meta .status-tick {
  margin-left: 2px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 600;
  color: inherit;
  text-decoration: none !important;
  border-bottom: none !important;
}

.status-tick-read {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.status-tick-delivered {
  color: rgba(255, 255, 255, 0.50) !important;
  font-weight: 500 !important;
}

.status-tick-sent {
  color: rgba(255, 255, 255, 0.38) !important;
  font-weight: 500 !important;
}

/* Avatar Containers (Compact 22px) */
.chat-avatar-wrapper {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 9.5px;
  user-select: none;
}

.chat-avatar-placeholder {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.buyer-avatar-wrap {
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.seller-avatar-wrap {
  margin-left: 5px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background-color: #000000;
}

/* Conversation List item */
.conv-list-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  margin: 2px 6px;
  transition: background-color 0.15s ease;
}

.conv-list-item:hover {
  background-color: #1a1c23;
}

.conv-list-item.active-conv {
  background-color: #20222a;
}

.conv-time {
  font-size: 11px;
  color: #8e929b;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
}

/* Globally disable any underline on timestamps or titles */
.conv-time, .bubble-meta, .bubble-meta *, .conv-time *, [data-tooltip], .msg-time {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
}

/* Chat Media & Attachments */
.msg-media-img {
  max-width: 280px;
  max-height: 220px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: block;
}
.msg-media-img:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.msg-media-video {
  max-width: 320px;
  max-height: 220px;
  border-radius: 8px;
  background-color: #000000;
  display: block;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 8px 0;
}
.chat-date-divider span {
  background-color: #1f2129;
  border: 1px solid #282a36;
  color: #8e929b;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Emoji Quick Bar */
.emoji-quick-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background-color 0.1s ease, transform 0.1s ease;
}
.emoji-quick-btn:hover {
  background-color: #2b2e3a;
  transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Floating Eldorado Live Support Button */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  color: #111215;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 40;
  transition: transform 0.15s ease;
}
.floating-support-btn:hover {
  transform: scale(1.06);
}
.floating-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Quoted reply card inside message bubble (Compact) */
.chat-quote-block {
  margin-bottom: 3px;
  padding: 3px 6px;
  background-color: rgba(0, 0, 0, 0.28);
  border-left: 2px solid #ffb700;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.3;
  user-select: none;
}
.chat-quote-sender {
  font-weight: 700;
  color: #ffb700;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
}
.chat-quote-snippet {
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
  margin-top: 1px;
  font-size: 9.5px;
}

/* Hover Reply Button on Chat Messages (Compact) */
.chat-reply-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease, background-color 0.15s ease;
  background-color: #1f2129;
  border: 1px solid #2d303e;
  color: #8e929b;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 4px;
  align-self: center;
  flex-shrink: 0;
}
.chat-message-row:hover .chat-reply-btn {
  opacity: 1;
  visibility: visible;
}
.chat-reply-btn:hover {
  background-color: #2b2e3a;
  color: #ffb700;
  border-color: #ffb700;
}

/* ========================================================
   UNIVERSAL DARK INPUT & FORM CONTROLS
   Fixes white-on-white text rendering in all browser environments
   ======================================================== */
.input-dark,
input.input-dark,
textarea.input-dark,
select.input-dark {
  background-color: #16171d !important;
  border: 1px solid #282a35 !important;
  color: #f3f4f6 !important;
  border-radius: 8px !important;
  font-size: 12.5px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.input-dark:focus,
input.input-dark:focus,
textarea.input-dark:focus,
select.input-dark:focus {
  outline: none !important;
  border-color: #ffb700 !important;
  background-color: #191a22 !important;
  box-shadow: 0 0 0 2px rgba(255, 183, 0, 0.22) !important;
}

.input-dark::placeholder,
input.input-dark::placeholder,
textarea.input-dark::placeholder {
  color: #646874 !important;
}

.input-dark:disabled,
.input-dark[readonly],
input.input-dark:disabled,
input.input-dark[readonly],
textarea.input-dark:disabled,
textarea.input-dark[readonly] {
  background-color: #101115 !important;
  color: #94a3b8 !important;
  border-color: #1f2129 !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

/* ========================================================
   COMPETITOR PRICE MONITOR & PRICING INTELLIGENCE
   ======================================================== */
.competitor-card {
  background: #18191e;
  border: 1px solid #262834;
  border-radius: 14px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.competitor-card:hover {
  border-color: #383b4a;
}

.price-metric-tile {
  background: #121317;
  border: 1px solid #1f2129;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

/* Status Indicator Pills */
.status-pill-green {
  background-color: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-pill-yellow {
  background-color: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-pill-red {
  background-color: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 700;
  font-size: 11px;
  border-radius: 9999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Store Rank Badges */
.rank-badge-gold {
  background: linear-gradient(135deg, #ffb700 0%, #d97706 100%);
  color: #111215;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-badge-silver {
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
  color: #0f172a;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-badge-bronze {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-badge-normal {
  background: #20222a;
  color: #94a3b8;
  border: 1px solid #2d303b;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Recommended Pricing Box */
.rec-box {
  background: rgba(255, 183, 0, 0.04);
  border: 1px solid rgba(255, 183, 0, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ========================================================
   AUTHENTICATION PORTAL & PASSWORD TOGGLE
   ======================================================== */
.pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #646874;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.pw-toggle-btn:hover {
  color: #ffb700;
}

/* Pure Black Checkmarks for Outgoing Seller Chat */
.chat-check-black {
  display: inline-flex;
  align-items: center;
  color: #111215 !important;
  stroke: #111215 !important;
  vertical-align: middle;
  line-height: 1;
  margin-left: 2px;
}
.chat-check-black svg {
  color: #111215 !important;
  stroke: #111215 !important;
}
