/* ============================================================
   Portal do Cliente — Mídia 360
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #4f46e5;
  --bg:          #f8fafc;
  --card:        #ffffff;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --border:      #e2e8f0;
  --radius:      12px;
  --sidebar-w:   240px;
  --shadow:      0 4px 16px rgba(15,23,42,.07);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── GRADIENT ── */
.grad {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page { min-height: 100vh; display: flex; }

.login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Painel esquerdo (branding) ── */
.login-brand {
  flex: 1 1 55%;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 72px;
  position: relative;
  overflow: hidden;
}

.login-brand__inner {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 48px;
}

.login-logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.login-brand h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 20px;
}

.login-brand p {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: 40px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}

.login-feature iconify-icon {
  font-size: 1.2rem;
  color: var(--brand);
  flex-shrink: 0;
}

/* Decorações de fundo */
.login-brand__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand__deco--1 {
  width: 400px; height: 400px;
  background: rgba(99,102,241,.12);
  bottom: -120px; right: -120px;
}
.login-brand__deco--2 {
  width: 200px; height: 200px;
  background: rgba(99,102,241,.08);
  top: -60px; left: -60px;
}

/* ── Painel direito (formulário) ── */
.login-form-wrap {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 72px;
  background: #fff;
}

.login-form-box { width: 100%; max-width: 420px; }

.login-form-header { margin-bottom: 32px; }
.login-form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.login-form-header p {
  font-size: .875rem;
  color: var(--text-muted);
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > iconify-icon:first-child {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}

.input-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.input-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 4px;
}
.input-eye:hover { color: var(--text-muted); }

.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(79,70,229,.25);
}
.btn-login:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,.3);
}

.login-help {
  margin-top: 24px;
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.55;
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.dash-page {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1a1740 45%, #2e1065 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.dash-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.dash-sidebar__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}

.dash-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
}

.dash-nav__item:hover,
.dash-nav__item.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.dash-nav__item iconify-icon { font-size: 1.1rem; flex-shrink: 0; }

.dash-nav__count {
  margin-left: auto;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}

.dash-nav__badge {
  margin-left: auto;
  background: #f59e0b;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
}

.dash-sidebar__footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.dash-sidebar__footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.dash-sidebar__footer-brand iconify-icon { font-size: 15px; opacity: .6; }

.dash-sidebar__footer-copy {
  font-size: .7rem;
  color: rgba(255,255,255,.3);
}

.dash-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.dash-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash-user__name {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user__role {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  margin-top: 1px;
}

.dash-logout {
  color: rgba(255,255,255,.4);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: color .2s;
  flex-shrink: 0;
}
.dash-logout:hover { color: #f87171; }

/* ── Main content ── */
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px 32px 60px;
  min-height: 100vh;
}

/* ── Footer ── */
.dash-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-dim);
  z-index: 50;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-header__title {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.dash-header__sub {
  font-size: .875rem;
  color: var(--text-muted);
}

.dash-header__right {
  display: flex;
  align-items: center;
}

/* ── User dropdown ── */
.dash-user-dropdown { position: relative; }

.dash-header__user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px 5px 5px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s;
}
.dash-header__user:hover { box-shadow: 0 4px 20px rgba(15,23,42,.12); }

.dash-dropdown__arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform .2s;
}
.dash-dropdown-menu.open ~ * .dash-dropdown__arrow,
.dash-user-dropdown:has(.dash-dropdown-menu.open) .dash-dropdown__arrow {
  transform: rotate(180deg);
}

.dash-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15,23,42,.13);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s;
  z-index: 200;
}
.dash-dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dash-dropdown-menu__header {
  padding: 10px 12px 12px;
}
.dash-dropdown-menu__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.dash-dropdown-menu__role {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.dash-dropdown-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dash-dropdown-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}
.dash-dropdown-menu__item iconify-icon { font-size: 18px; color: var(--text-muted); }
.dash-dropdown-menu__item:hover { background: var(--bg); }
.dash-dropdown-menu__item--danger { color: #ef4444; }
.dash-dropdown-menu__item--danger iconify-icon { color: #ef4444; }

.dash-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  border: none;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash-header__user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.dash-header__user-role {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-header__meta {
  font-size: .8rem;
  color: var(--text-dim);
  padding-top: 4px;
}

/* ── Summary cards ── */
.dash-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-summary__card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.dash-summary__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dash-summary__icon--blue   { background: rgba(72,127,255,.12); }
.dash-summary__icon--blue   iconify-icon { color: #487fff; }
.dash-summary__icon--amber  { background: rgba(245,158,11,.12); }
.dash-summary__icon--amber  iconify-icon { color: #f59e0b; }
.dash-summary__icon--green  { background: rgba(34,197,94,.12); }
.dash-summary__icon--green  iconify-icon { color: #22c55e; }
.dash-summary__icon--purple { background: rgba(168,85,247,.12); }
.dash-summary__icon--purple iconify-icon { color: #a855f7; }

.dash-summary__value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 2px;
}

.dash-summary__label {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Tabs ── */
.dash-tab { display: none; }
.dash-tab.active { display: block; }

.dash-section-header {
  margin-bottom: 16px;
}

.dash-section-header h2 {
  font-size: 1.1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-section-header h2 strong { font-weight: 700; }

.dash-section-header h2 iconify-icon {
  font-size: 1.2rem;
  color: var(--brand);
}

/* ── Table ── */
.dash-table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.dash-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.dash-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.dash-table tbody tr:last-child { border-bottom: none; }
.dash-table tbody tr:hover { background: #f8fafc; }

.dash-table tbody td {
  padding: 13px 16px;
  color: var(--text);
  vertical-align: middle;
}

.fw-medium { font-weight: 500; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .73rem;
  font-weight: 600;
}

.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: #f1f5f9; color: #64748b; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }

/* ── Empty state ── */
.dash-empty {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.dash-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.dash-empty__icon--blue   { background: rgba(72,127,255,.08); color: #487fff; }
.dash-empty__icon--yellow { background: rgba(245,158,11,.08); color: #f59e0b; }
.dash-empty__icon--green  { background: rgba(34,197,94,.08);  color: #22c55e; }
.dash-empty__icon--purple { background: rgba(168,85,247,.08); color: #a855f7; }

.dash-empty__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.dash-empty__sub {
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── Report cards grid ── */
.dash-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dash-report-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.dash-report-card:hover {
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  transform: translateY(-2px);
}

.dash-report-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(168,85,247,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #a855f7;
  flex-shrink: 0;
}

.dash-report-card__title {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.dash-report-card__meta {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Section sub-title ── */
.dash-section-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Approval cards ── */
.aprov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.aprov-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.aprov-card--pending {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.08), var(--shadow);
}
.aprov-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.1); }

.aprov-card__img {
  position: relative;
  background: #f1f5f9;
  height: 200px;
  overflow: hidden;
}
.aprov-card__img-btn {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.aprov-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.aprov-card__img-btn:hover img { transform: scale(1.03); }

.aprov-card__zoom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,23,42,.55);
  color: #fff;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.aprov-card__no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: var(--text-dim);
  font-size: .8rem;
}
.aprov-card__no-img iconify-icon { font-size: 2rem; }

.aprov-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.aprov-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aprov-card__tipo {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.aprov-card__campanha {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.aprov-card__arte {
  font-size: .82rem;
  color: var(--text-muted);
}

.aprov-card__date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-dim);
}
.aprov-card__date iconify-icon { font-size: .95rem; }

.aprov-card__obs {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}
.aprov-card__obs iconify-icon { font-size: 1rem; color: #d97706; flex-shrink: 0; margin-top: 1px; }

.aprov-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-aprov {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, opacity .15s;
}
.btn-aprov:active { transform: scale(.97); }

.btn-aprov--ok {
  background: #dcfce7;
  color: #16a34a;
  flex: 1;
}
.btn-aprov--ok:hover { background: #bbf7d0; }

.btn-aprov--nok {
  background: #fee2e2;
  color: #dc2626;
  flex: 1;
}
.btn-aprov--nok:hover { background: #fecaca; }

.aprov-card__reprovar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.aprov-card__reprovar textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.aprov-card__reprovar textarea:focus { border-color: #dc2626; }

.aprov-card__reprovar-btns {
  display: flex;
  gap: 8px;
}

.btn-aprov--confirm-nok {
  background: #dc2626;
  color: #fff;
  flex: 1;
}
.btn-aprov--confirm-nok:hover { background: #b91c1c; }

.btn-aprov--cancel {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-aprov--cancel:hover { background: var(--border); }

.aprov-card__feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 4px;
}
.aprov-card__feedback--ok  { background: #dcfce7; color: #16a34a; }
.aprov-card__feedback--nok { background: #fee2e2; color: #dc2626; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  object-fit: contain;
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: .75;
  line-height: 1;
  display: flex;
  align-items: center;
}
.lightbox__close:hover { opacity: 1; }

/* ============================================================
   HEADER — melhorias
   ============================================================ */
.dash-header__eyebrow {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 4px;
}

.dash-header__title {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.dash-header__sub {
  font-size: .8rem;
  color: var(--text-dim);
}

/* Notification bell */
.dash-header__alert {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #d97706;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  margin-right: 8px;
  flex-shrink: 0;
}
.dash-header__alert:hover { background: #fde68a; }

.dash-header__alert-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   SIDEBAR — melhorias
   ============================================================ */
.dash-nav__label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  padding: 0 12px;
  margin-bottom: 4px;
  margin-top: 4px;
}

.dash-nav__item {
  position: relative;
}

.dash-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
  transition: height .2s;
}

.dash-nav__item.active::before {
  height: 60%;
}

.dash-nav__item span:first-of-type {
  flex: 1;
}

/* Sidebar footer */
.dash-sidebar__footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-sidebar__user {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.dash-sidebar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dash-sidebar__user-info { min-width: 0; }

.dash-sidebar__user-name {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar__user-role {
  font-size: .68rem;
  color: rgba(255,255,255,.38);
  margin-top: 1px;
}

.dash-sidebar__logout-full {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.dash-sidebar__logout-full iconify-icon { font-size: 1rem; }
.dash-sidebar__logout-full:hover {
  background: rgba(239,68,68,.12);
  color: #f87171;
}

/* ============================================================
   SUMMARY CARDS — melhorias
   ============================================================ */
.dash-summary__card {
  position: relative;
  overflow: hidden;
}

.dash-summary__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.dash-summary__card--blue::after   { background: #487fff; }
.dash-summary__card--amber::after  { background: #f59e0b; }
.dash-summary__card--green::after  { background: #22c55e; }
.dash-summary__card--purple::after { background: #a855f7; }

.dash-summary__card--urgent {
  border-color: #fde68a !important;
  background: #fffbeb !important;
}
.dash-summary__card--urgent::after { background: #f59e0b; }

.dash-summary__cta {
  font-size: .7rem;
  font-weight: 600;
  color: #d97706;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dash-summary__cta::before {
  content: '→';
}

/* ============================================================
   CAMPAIGN CARDS
   ============================================================ */
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.camp-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.camp-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.1);
  transform: translateY(-2px);
}

.camp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.camp-card__name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.camp-card__dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
}
.camp-card__dates iconify-icon { font-size: .95rem; color: var(--text-dim); flex-shrink: 0; }
.camp-card__arrow { font-size: .75rem; color: var(--text-dim); }

.camp-card__progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.camp-card__progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.camp-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #7c3aed);
  border-radius: 99px;
  transition: width .5s ease;
}

.camp-card__progress-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 34px;
  text-align: right;
}

.camp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.camp-card__pontos {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-muted);
}
.camp-card__pontos iconify-icon { font-size: .95rem; color: var(--brand); }

.camp-card__restam {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: #f59e0b;
}
.camp-card__restam iconify-icon { font-size: .9rem; }

.camp-card__concluida {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: #22c55e;
}
.camp-card__concluida iconify-icon { font-size: .9rem; }

/* ============================================================
   PROVAS — melhorias visuais
   ============================================================ */
.prova-codigo {
  font-size: .82rem;
  font-weight: 600;
  font-family: ui-monospace, 'SF Mono', monospace;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
}

.prova-local {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--text-muted);
}
.prova-local iconify-icon { font-size: .9rem; color: var(--text-dim); }

.prova-tipo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--tipo-color, var(--text-muted));
}
.prova-tipo iconify-icon { font-size: 1rem; }

.prova-fotos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 99px;
}
.prova-fotos iconify-icon { font-size: .85rem; }

.text-muted-sm {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ============================================================
   RELATÓRIOS — melhorias visuais
   ============================================================ */
.rel-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rel-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.rel-card:hover {
  box-shadow: 0 6px 20px rgba(15,23,42,.1);
  transform: translateX(3px);
}

.rel-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.rel-card__body { flex: 1; min-width: 0; }

.rel-card__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rel-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
}

.rel-card__tipo {
  font-weight: 500;
}

.rel-card__dot { color: var(--text-dim); }

.rel-card__action {
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color .15s;
}
.rel-card:hover .rel-card__action { color: var(--brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dash-summary { grid-template-columns: repeat(2, 1fr); }
  .camp-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .login-brand { display: none; }
  .login-form-wrap { width: 100%; padding: 32px 24px; }

  .dash-sidebar { transform: translateX(-100%); }
  .dash-main { margin-left: 0; padding: 20px 16px 80px; }
  .dash-summary { grid-template-columns: repeat(2, 1fr); }
  .camp-grid { grid-template-columns: 1fr; }
  .dash-header__eyebrow { display: none; }
}

@media (max-width: 480px) {
  .dash-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-header { flex-direction: column; gap: 12px; }
  .dash-header__right { align-self: flex-end; }
}
