/* =============================================================================
   Location: /public/assets/dashboard.css
   Function: Reviewer dashboard theme on top of Bootstrap 5.3 and app.css
   Version:  1.4.0 · Build 2026.10.27.0800
   1.4.0 Prośby (consultation requests), routing card, Poczta; 1.3.0 Klasy (class tests and status switch); 1.2.0 installer, System page, password choice and reveal; 1.1.0 active/inactive question pills and toggle; 1.0.1 primary button, wrapping pills
   ============================================================================= */

.dash-nav { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.dash-nav a { color: #DCE3FA; text-decoration: none; padding: .5rem .8rem; border-radius: .6rem; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; }
.dash-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav a[aria-current="page"] { background: rgba(255,216,77,.18); color: #FFD84D; }

.user-chip { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; padding: .25rem .5rem; border-radius: 999px; }
.user-chip:hover { background: rgba(255,255,255,.08); color: #fff; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: #E6ECFF; color: #1D3FB8; display: inline-grid; place-items: center; font-weight: 600; flex: none; font-size: .9rem; }
.avatar--sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.2rem; }
.site-header .avatar { background: #FFD84D; color: #0F1B4D; }

.role-badge { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.role-badge--admin { background: #0F1B4D; color: #FFD84D; }
.role-badge--reviewer { background: #E3F4E8; color: #146C33; }
.site-header .role-badge--admin { background: #FFD84D; color: #0F1B4D; }

.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem; }
.animate-in { animation: dashIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tile-link { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; min-height: 108px; }
.tile-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,27,77,.10); }
.tile--info { background: #E6ECFF; color: #1D3FB8; }

.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1rem 1.25rem; }

.q-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #F7F9FD; }
.q-table td, .q-table th { padding: .85rem 1rem; }

.qstatus { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .25rem .7rem; white-space: nowrap; }
.qstatus--pending { background: var(--unsure-bg); color: var(--unsure-fg); }
.qstatus--approved { background: var(--ok-bg); color: var(--ok-fg); }
.qstatus--rejected { background: var(--gap-bg); color: var(--gap-fg); }
.approvals { font-weight: 600; color: #1D3FB8; white-space: nowrap; }
.objections { color: var(--gap-fg); margin-left: .5rem; white-space: nowrap; }
.ver-pill { font-size: .75rem; font-weight: 600; background: #EEF0F3; color: var(--muted); border-radius: 999px; padding: .15rem .55rem; font-family: 'IBM Plex Mono', monospace; }

.sugg-pill { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; display: inline-flex; gap: .3rem; align-items: center; }
.suggestion .sugg-pill { white-space: normal; }
.btn-primary { --bs-btn-bg: #2346D8; --bs-btn-border-color: #2346D8; --bs-btn-hover-bg: #1B37B0; --bs-btn-hover-border-color: #1B37B0; --bs-btn-active-bg: #172F96; --bs-btn-active-border-color: #172F96; }
.sugg-pill--open { background: #FFF3C4; color: #6B4A00; }
.sugg-pill--accepted { background: var(--ok-bg); color: var(--ok-fg); }
.sugg-pill--rejected { background: #EEF0F3; color: var(--muted); }

.feed, .activity, .review-list { list-style: none; padding: 0; margin: 0; }
.feed li, .review-list li { display: flex; gap: .75rem; padding: .75rem 0; border-top: 1px solid #EEF0F4; }
.feed li:first-child, .review-list li:first-child { border-top: 0; }
.activity li { display: flex; flex-direction: column; padding: .5rem 0; border-top: 1px solid #EEF0F4; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Question page */
.sample { border: 1px solid #EEF0F4; border-radius: .9rem; padding: 1rem 1.1rem; margin-bottom: .75rem; background-image: linear-gradient(#F3F5FA 1px, transparent 1px), linear-gradient(90deg, #F3F5FA 1px, transparent 1px); background-size: 20px 20px; background-color: #fff; }
.sample-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0F1B4D; color: #FFD84D; font-size: .8rem; font-family: 'IBM Plex Sans', sans-serif; vertical-align: middle; }
.sample-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .75rem 0 0; }
.sample-meta div { display: flex; gap: .4rem; align-items: baseline; }
.sample-meta dt { font-size: .72rem; font-weight: 600; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.sample-meta dd { margin: 0; }
.sample-meta .is-muted { opacity: .55; }

.thread { border-top: 1px solid #EEF0F4; padding: 1rem 0 .5rem; }
.thread:first-of-type { border-top: 0; padding-top: 0; }
.entry { display: flex; gap: .85rem; scroll-margin-top: 90px; }
.entry--reply { margin: .75rem 0 0 2.75rem; }
.entry:target .entry-body { box-shadow: 0 0 0 3px rgba(255,216,77,.7); border-radius: .75rem; }
.entry-body { flex: 1; min-width: 0; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: .25rem; }
.entry-text { white-space: normal; overflow-wrap: anywhere; }
.suggestion { margin-top: .6rem; border-radius: .75rem; padding: .75rem .9rem; border: 1px solid #F0DB8A; background: #FFFAE6; }
.suggestion--accepted { border-color: #BFE3C9; background: #F1FAF3; }
.suggestion--rejected { border-color: var(--line); background: #F7F8FA; }
.suggestion--rejected .suggestion-text { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.reply-box { margin: .25rem 0 0 2.75rem; }
.reply-box > summary { list-style: none; padding-left: 0; }
.reply-box > summary::-webkit-details-marker { display: none; }
.new-thread { border-top: 2px dashed var(--line); padding-top: 1.25rem; }

.decision-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.decision { border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.btn-check:checked + .decision--approve { background: var(--ok-bg); color: var(--ok-fg); border-color: #8FD0A3; }
.btn-check:checked + .decision--request_changes { background: var(--unsure-bg); color: var(--unsure-fg); border-color: #E9C46A; }
.btn-check:checked + .decision--reject { background: var(--gap-bg); color: var(--gap-fg); border-color: #E7A07A; }
.btn-check:focus-visible + .decision { box-shadow: 0 0 0 .25rem rgba(35,70,216,.25); }
.decision-pill { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; margin-left: .25rem; }
.decision-pill--approve { background: var(--ok-bg); color: var(--ok-fg); }
.decision-pill--request_changes { background: var(--unsure-bg); color: var(--unsure-fg); }
.decision-pill--reject { background: var(--gap-bg); color: var(--gap-fg); }

.details-grid { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin-bottom: 1rem; }
.details-grid dt { color: var(--muted); font-weight: 500; }
.details-grid dd { margin: 0; }
.tech dt { font-size: .78rem; color: var(--muted); font-family: 'IBM Plex Mono', monospace; margin-top: .5rem; }
.tech dd { margin: 0; }
.tech code { white-space: pre-wrap; overflow-wrap: anywhere; color: #0F1B4D; }

/* Active in the public test (1.1.0) */
.active-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: .3rem .75rem; border: 0; cursor: pointer; white-space: nowrap; min-height: 32px; list-style: none; }
.active-pill::-webkit-details-marker { display: none; }
.active-pill--on { background: var(--ok-bg); color: var(--ok-fg); }
.active-pill--off { background: #EEF0F3; color: var(--muted); }
.active-pill:hover { filter: brightness(.96); }
.toggle-box { position: relative; }
.toggle-form { position: absolute; right: 0; z-index: 5; width: 240px; margin-top: .4rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; box-shadow: 0 12px 28px rgba(15,27,77,.14); }
.activity-card--on { border-left: 0; box-shadow: inset 0 3px 0 #8FD0A3; }
.activity-card--off { box-shadow: inset 0 3px 0 #C9CED8; background: #FAFBFC; }

@media (min-width: 1200px) { .sticky-xl { position: sticky; top: 1rem; } }

.login-wrap { min-height: 60vh; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 2rem; box-shadow: 0 18px 44px rgba(15,27,77,.08); }

.otp code { background: #fff; padding: .15rem .5rem; border-radius: .4rem; }

@media (prefers-reduced-motion: reduce) { .animate-in { animation: none; } }

/* 1.2.0 – installer, System page, password choice */
.login-card--wide { max-width: 560px; }
.setup-steps { padding-left: 1.2rem; }
.setup-steps li { margin-bottom: .75rem; }
.setup-steps code { word-break: break-all; }
.system-card--alert { box-shadow: inset 0 3px 0 #F2B84B; }
.pw-choice { border: 0; padding: 0; margin: 0; }
.pw-choice > legend { font-size: 1rem; float: none; }
.user-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.user-item { padding: 1rem 1.25rem; }
.user-item--off { background: #FAFBFC; }
.user-item--off .user-item__who a { color: #5B6478; }
.site-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #E6F4EA; color: #1E6B3A; }
.user-item__main { display: grid; grid-template-columns: auto 1fr auto auto; gap: .75rem 1rem; align-items: center; }
.user-item__meta { text-align: right; color: #5B6478; }
.user-item__pw { margin-top: .75rem; border-top: 1px dashed var(--line); padding-top: .6rem; }
.user-item__pw > summary { cursor: pointer; color: #2346D8; font-weight: 500; width: fit-content; min-height: 32px; display: flex; align-items: center; gap: .35rem; }
.user-pw-form { max-width: 420px; padding-top: .75rem; }
@media (max-width: 575.98px) {
  .user-item__main { grid-template-columns: auto 1fr; }
  .user-item__meta { text-align: left; grid-column: 2; }
  .user-item__actions { grid-column: 2; justify-self: start; }
}
.pw-manual { margin: .5rem 0 0 1.6rem; }
.pw-manual[hidden] { display: none; }
.pw-field { position: relative; }
.pw-field > .form-control { padding-right: 2.6rem; }
.pw-reveal { position: absolute; top: 0; right: 0; height: 100%; min-width: 40px; border: 0; background: transparent; color: #5B6478; border-radius: 0 .5rem .5rem 0; }
.pw-reveal:hover, .pw-reveal:focus-visible { color: #2346D8; }

/* profile form (shared: Moje konto + superadmin edit) */
.profile-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.profile-legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5B6478; font-weight: 600; float: none; margin-bottom: .6rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; width: 100%; }
.profile-publish { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
dl.small dt { font-weight: 600; color: #5B6478; }
dl.small dd { margin-bottom: .5rem; }

/* 1.3.0 – Klasy */
.stage-list { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); align-items: start; }
.stage-item--planned { background: #FAFBFC; }
.stage-item__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.stage-item__stats { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.stage-item__targets > summary { cursor: pointer; color: #2346D8; width: fit-content; }
.stage-pill { flex: none; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .2rem .7rem; white-space: nowrap; }
.stage-pill--planned { color: #4A505C; background: #EEF0F3; }
.stage-pill--prep { color: #8A4A06; background: #FDF0DC; }
.stage-pill--test { color: #1D3FB8; background: #E6ECFF; }
.stage-pill--live { color: #146C33; background: #E3F4E8; }
.stage-item--test { box-shadow: inset 0 3px 0 #9DB2FF; }
.stage-item--live { box-shadow: inset 0 3px 0 #8FD0A3; }
.stage-switch { display: flex; flex-wrap: wrap; gap: .35rem; }
.stage-switch .btn[disabled] { opacity: 1; }

/* 1.4.0 – Prośby */
.nav-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #FFD84D; color: #0F1B4D; font-size: .75rem; font-weight: 700; }
.req-filter { display: flex; flex-wrap: wrap; gap: .25rem; }
.req-filter a { padding: .35rem .75rem; border-radius: 999px; text-decoration: none; color: #3A4150; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.req-filter a span { color: #5B6478; margin-left: .15rem; }
.req-filter a[aria-current="page"] { background: #0F1B4D; color: #fff; border-color: #0F1B4D; }
.req-filter a[aria-current="page"] span { color: #FFD84D; }
.req-list { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.req { display: flex; flex-direction: column; gap: .75rem; scroll-margin-top: 1rem; }
.req--new { box-shadow: inset 0 3px 0 #FFD84D; }
.req--closed { background: #FAFBFC; }
.req--focus { outline: 3px solid #2346D8; outline-offset: 2px; }
.req__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.req__msg { margin: .5rem 0; padding: .5rem .75rem; border-left: 3px solid var(--line); color: #3A4150; font-size: .95rem; }
.req__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.req__note > summary { cursor: pointer; color: #2346D8; width: fit-content; }
.req-status { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .2rem .7rem; }
.req-status--new { color: #6B4A00; background: #FFF3C4; }
.req-status--contacted { color: #1D3FB8; background: #E6ECFF; }
.req-status--closed { color: #4A505C; background: #EEF0F3; }
.routing-stages { border: 0; padding: 0; margin: 0; }
