/*
  File role: VOGO chat (rag-ai) — "Trimite în conversație" for a cancelled message (forward-msg.js; user, 28.10.2026):
  the small pop-up over the copy button, the list of the active conversations drawn like the app's Profile list
  (blue outline icon, bold title, grey detail, chevron, thin separators), the confirmation toast.
  The whole screen on the phone, a centred panel on the laptop; the chat's tokens give the light and the dark theme.
  @file_version 1.0.0
*/

/* The small pop-up: one option, above the copy button */
.fwd-pop { position: fixed; z-index: 125; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28); padding: 4px; }
.fwd-pop-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fwd-pop-item:hover { background: var(--code); }
.fwd-pop-item .bi { font-size: 20px; color: var(--vogo-icon-blue); }

/* The list of the conversations */
.fwd-screen { position: fixed; inset: 0; z-index: 107; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 16, .45); }
.fwd-panel { display: flex; flex-direction: column; width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 860px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.fwd-head { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 14px 6px 6px; background: var(--panel);
  border-bottom: 1px solid var(--line); }
.fwd-back { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--fg); font-size: 22px; cursor: pointer; }
.fwd-back:hover { background: var(--code); }
.fwd-title { min-width: 0; }
.fwd-title h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--fg); }
.fwd-what { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwd-note { margin: 0; padding: 0 16px; font-size: 13.5px; color: var(--muted); }
.fwd-note:not(:empty) { padding: 10px 16px; }
.fwd-note.fwd-error { color: #d64545; }
.fwd-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fwd-empty { margin: 0; padding: 32px 16px; text-align: center; color: var(--muted); }

/* One row per conversation, like the Profile list */
.fwd-list { display: flex; flex-direction: column; padding: 0 16px; }
.fwd-row { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 72px; padding: 10px 2px; border: 0;
  border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.fwd-row:last-child { border-bottom: 0; }
.fwd-row:hover { background: var(--code); }
.fwd-row-icon { flex: none; width: 34px; display: inline-flex; justify-content: center; color: var(--vogo-icon-blue); }
.fwd-row-icon .conv-icon { color: var(--vogo-icon-blue); }
.fwd-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fwd-row-name { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwd-row-meta { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwd-row-go { flex: none; font-size: 18px; color: var(--muted); }
.fwd-row.fwd-sending { opacity: .55; pointer-events: none; }

/* The confirmation */
.fwd-toast { position: fixed; z-index: 130; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 10px 18px; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }

@media (max-width: 600px) {
  .fwd-screen { background: var(--bg); align-items: stretch; }
  .fwd-panel { width: 100%; max-height: none; height: 100%; border: 0; border-radius: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
