/* 📬 Məktublar / Bildirişlər (Inbox) — styles only for the module's own elements (mq-inbox*, inbox-admin*). */

/* ---- The existing icon left of the scrolling text ("Master AI sisteminə xoş gəlmisiniz!") ----
   It used to be the pseudo-element .marquee-wrapper::before (app.css); mq-inbox.js shows the same icon as a real
   button in its place, so only that ::before is hidden. The button sits ABOVE the scrolling text
   (position: relative + z-index: 2) on a half-transparent dark, blurred background: the text slides under it. */
.marquee-wrapper.mq-inbox-ready { padding-left: 0; }
.marquee-wrapper.mq-inbox-ready::before { display: none; }
.mq-inbox-bell { position: relative; z-index: 2; flex: none; align-self: stretch; display: grid; place-items: center;
  width: 54px; margin: -14px 14px -14px 0; padding: 0; border: 0; border-right: 1px solid rgba(212, 175, 55, .18); border-radius: 0;
  background-color: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 10px 0 14px -6px rgba(0, 0, 0, .55); color: inherit; font-size: 18px; line-height: 1; cursor: default; }
.mq-inbox-bell.is-signed-in { cursor: pointer; }
.mq-inbox-bell.is-signed-in:hover, .mq-inbox-bell[aria-expanded="true"] { background-color: rgba(0, 0, 0, .62); }
.mq-inbox-bell:focus-visible { outline: 2px solid rgba(251, 191, 36, .8); outline-offset: -3px; }
.mq-inbox-bell__icon { filter: sepia(1) hue-rotate(30deg) saturate(3); } /* the same look as the old ::before */
@media (max-width: 600px) { .mq-inbox-bell { width: 42px; margin: -9px 10px -9px 0; font-size: 16px; } }
body.light-mode .mq-inbox-bell { background-color: rgba(255, 255, 255, .6); border-right-color: rgba(153, 116, 4, .22); box-shadow: 10px 0 14px -6px rgba(15, 23, 42, .18); }

/* Red unread badge in the icon's corner (hidden when there are no unread messages). */
.mq-inbox-badge { position: absolute; top: 3px; right: 3px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
  font: 700 10.5px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, .9), 0 3px 8px -2px rgba(239, 68, 68, .75); }
.mq-inbox-badge[hidden] { display: none; }
@media (max-width: 600px) { .mq-inbox-badge { top: 1px; right: 1px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; } }
body.light-mode .mq-inbox-badge { box-shadow: 0 0 0 2px #fff, 0 3px 8px -2px rgba(239, 68, 68, .6); }

/* ---- The dropdown: opens directly under the icon (position set by mq-inbox.js) ---- */
.mq-inbox { position: fixed; z-index: 10060; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #111a2e, #0b1220); color: #e5e7eb; border: 1px solid rgba(251, 191, 36, .35); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset; animation: mqInboxIn .16s ease-out; }
.mq-inbox[hidden] { display: none; }
.mq-inbox::before { content: ""; position: absolute; top: -1px; left: var(--mq-inbox-arrow, 24px); width: 12px; height: 2px; transform: translateX(-50%); background: #fbbf24; border-radius: 2px; }
@keyframes mqInboxIn { from { opacity: 0; transform: translateY(-6px); } }
.mq-inbox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mq-inbox__head h3 { margin: 0; font-size: 16px; color: #fbbf24; }
.mq-inbox__close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.mq-inbox__close:hover { background: rgba(255, 255, 255, .12); }
.mq-inbox__list { overflow-y: auto; overscroll-behavior: contain; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mq-inbox__empty { margin: 0; padding: 28px 12px; text-align: center; color: #94a3b8; font-size: 14px; }
.mq-inbox__item { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 11px 12px 11px 14px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .03); color: inherit; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; font: inherit; position: relative; }
.mq-inbox__item:hover { background: rgba(255, 255, 255, .06); }
.mq-inbox__item.is-unread { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); }
.mq-inbox__item.is-unread::before { content: ""; position: absolute; left: 5px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.mq-inbox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.mq-inbox__title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: #f1f5f9; overflow-wrap: anywhere; }
.mq-inbox__item.is-unread .mq-inbox__title { font-weight: 800; color: #fde68a; }
.mq-inbox__date { flex: none; font-size: 11px; color: #94a3b8; }
.mq-inbox__body { font-size: 13px; line-height: 1.45; color: #cbd5e1; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mq-inbox__item.is-open .mq-inbox__body { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* Light mode */
body.light-mode .mq-inbox { background: #fff; color: #0f172a; border-color: rgba(217, 119, 6, .35); }
body.light-mode .mq-inbox__head { border-bottom-color: rgba(15, 23, 42, .08); }
body.light-mode .mq-inbox__head h3 { color: #b45309; }
body.light-mode .mq-inbox__close { background: rgba(15, 23, 42, .06); }
body.light-mode .mq-inbox__item { background: rgba(15, 23, 42, .03); border-color: rgba(15, 23, 42, .08); }
body.light-mode .mq-inbox__item.is-unread { background: rgba(251, 191, 36, .14); border-color: rgba(217, 119, 6, .4); }
body.light-mode .mq-inbox__title { color: #0f172a; }
body.light-mode .mq-inbox__item.is-unread .mq-inbox__title { color: #92400e; }
body.light-mode .mq-inbox__body { color: #334155; }
@media (prefers-reduced-motion: reduce) { .mq-inbox { animation: none; } }

/* Admin panel form */
.inbox-admin-form { display: grid; gap: 10px; }
.inbox-admin-form textarea { resize: vertical; min-height: 90px; }
.inbox-admin-form #inbox-admin-to-row[hidden] { display: none !important; }
.inbox-admin-status { font-size: 13px; color: #86efac; min-height: 18px; }
.inbox-admin-status.is-error { color: #f87171; }
/* build 20261109inbox2 */
