/* ═══════════════════════════════════════════════════════════
   ARCH CHALLENGE 2026 — Dashboard CSS
   Stile coerente con design-system.css
   Palette: light bg, gold accent, Montserrat
═══════════════════════════════════════════════════════════ */

/* ── RESET BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── VARIABILI ── */
:root {
  --black:        #0D0F12;
  --charcoal:     #111417;
  --charcoal-2:   #151820;
  --charcoal-3:   #1A1D24;
  --surface-dark: #181B22;
  --white:        #FFFCF5;
  --light-bg:     #F6F6F4;
  --light-bg-2:   #ffffff;
  --light-bg-3:   #EDEDEA;
  --light-border: rgba(0,0,0,0.08);
  --dark-text:    #0E1014;
  --dark-text-2:  #2E3240;
  --muted:        #6B7080;
  --gold:         #C6A75E;
  --gold-on-light:#B68D2A;
  --gold-muted:   rgba(198,167,94,0.18);
  --gold-subtle:  rgba(198,167,94,0.08);
  --sans: Montserrat, -apple-system, Helvetica Neue, Arial, sans-serif;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --sidebar-w: 240px;
  --topbar-h:  60px;
}

body {
  background: var(--light-bg);
  color: var(--dark-text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
}

/* Gold top line */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, #D4B15A 50%, var(--gold) 80%, transparent 100%);
  z-index: 9999;
  pointer-events: none;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
::selection { background: var(--gold); color: #fff; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.db-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.db-login__left {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.db-login__left-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/cidade-velha-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.25;
  filter: saturate(0.5);
}

.db-login__left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,11,14,0.85) 0%, rgba(10,11,14,0.50) 100%);
}

.db-login__brand {
  position: relative;
  z-index: 1;
}

.db-login__brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.db-login__brand-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.45);
}

.db-login__left-content {
  position: relative;
  z-index: 1;
}

.db-login__left-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.db-login__left-title strong {
  font-weight: 700;
  display: block;
}

.db-login__left-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(220,220,220,0.65);
  line-height: 1.8;
  max-width: 340px;
}

.db-login__left-footer {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(220,220,220,0.30);
  letter-spacing: 0.08em;
}

.db-login__right {
  background: var(--light-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.db-login__form-wrap {
  width: 100%;
  max-width: 380px;
}

.db-login__form-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-login__form-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-login__form-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  margin-bottom: 2.4rem;
  text-transform: uppercase;
}

/* ── FORM FIELDS ── */
.db-field {
  margin-bottom: 1.4rem;
}

.db-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.db-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.db-input:focus {
  border-color: var(--gold);
  background: #fff;
}

.db-input::placeholder { color: rgba(14,16,20,0.35); }

.db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  white-space: nowrap;
}

.db-btn--primary {
  background: var(--dark-text);
  color: var(--white);
  width: 100%;
}

.db-btn--primary:hover { background: var(--charcoal-3); transform: translateY(-1px); }

.db-btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}

.db-btn--gold:hover { background: #D4B15A; }

.db-btn--ghost {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--light-border);
}

.db-btn--ghost:hover { border-color: var(--dark-text); }

.db-btn--sm {
  padding: 7px 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.db-btn--danger {
  background: transparent;
  color: #B04040;
  border: 1px solid rgba(176,64,64,0.25);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 6px 14px;
}

.db-btn--danger:hover { background: rgba(176,64,64,0.06); border-color: #B04040; }

.db-login__switch {
  margin-top: 1.8rem;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.db-login__switch a {
  color: var(--gold-on-light);
  text-decoration: none;
  font-weight: 600;
}

.db-error {
  background: rgba(176,64,64,0.07);
  border: 1px solid rgba(176,64,64,0.20);
  color: #8B2020;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD SHELL — sidebar + main
══════════════════════════════════════════════════════════ */
.db-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.db-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(198,167,94,0.08);
}

.db-sidebar__brand {
  padding: 1.6rem 1.5rem 1.4rem;
  border-bottom: 1px solid rgba(198,167,94,0.08);
}

.db-sidebar__brand-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}

.db-sidebar__brand-role {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(220,220,220,0.35);
  text-transform: uppercase;
}

.db-sidebar__nav {
  flex: 1;
  padding: 1.2rem 0;
  overflow-y: auto;
}

.db-sidebar__section {
  padding: 0.8rem 1.5rem 0.3rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.25);
}

.db-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(220,220,220,0.60);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  border-left: 2px solid transparent;
}

.db-sidebar__link:hover {
  color: rgba(220,220,220,0.90);
  background: rgba(198,167,94,0.05);
}

.db-sidebar__link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(198,167,94,0.07);
}

.db-sidebar__link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.db-sidebar__footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(198,167,94,0.08);
}

.db-sidebar__user {
  font-size: 11px;
  color: rgba(220,220,220,0.45);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.db-sidebar__user strong {
  display: block;
  color: rgba(220,220,220,0.75);
  font-weight: 600;
}

.db-sidebar__logout {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.35);
  text-decoration: none;
  transition: color 0.18s;
}

.db-sidebar__logout:hover { color: var(--gold); }

/* ── MAIN CONTENT ── */
.db-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.db-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.4rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.db-topbar__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-text);
}

.db-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.db-topbar__reg-id {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-on-light);
  text-transform: uppercase;
}

.db-content {
  padding: 2.4rem;
  flex: 1;
}

/* ── PAGE HEADER ── */
.db-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.db-page-header__left {}

.db-page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  text-transform: uppercase;
  line-height: 1.1;
}

.db-page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════════════════════════
   CARDS & STAT BLOCKS
══════════════════════════════════════════════════════════ */
.db-card {
  background: #fff;
  border: 1px solid var(--light-border);
  padding: 1.8rem;
}

.db-card--dark {
  background: var(--charcoal);
  border-color: rgba(198,167,94,0.10);
  color: rgba(220,220,220,0.85);
}

.db-card__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-card__label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--gold-on-light);
  flex-shrink: 0;
}

.db-card--dark .db-card__label {
  color: rgba(220,220,220,0.40);
}

.db-card--dark .db-card__label::before {
  background: var(--gold);
}

.db-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.2rem;
}

.db-card--dark .db-card__title {
  color: rgba(220,220,220,0.90);
}

/* Stat card */
.db-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--light-border);
  border: 1px solid var(--light-border);
  margin-bottom: 2rem;
}

.db-stat {
  background: #fff;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.db-stat__num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark-text);
  line-height: 1;
}

.db-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.db-stat__sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.2rem;
}

.db-stat--gold .db-stat__num { color: var(--gold-on-light); }
.db-stat--ok   .db-stat__num { color: #3A7A3A; }
.db-stat--warn .db-stat__num { color: #C68020; }
.db-stat--alert .db-stat__num { color: #B04040; }
.db-stat--revenue .db-stat__num { color: #1A6B1A; font-size: 2rem; }
.db-stat-grid--revenue { grid-template-columns: 2fr 1fr 1fr; background: rgba(26,107,26,0.04); border: 1px solid rgba(26,107,26,0.12); border-radius: 4px; padding: 1rem; }

/* ══════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════ */
.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  border-radius: 0;
}

.db-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-badge--pending  { background: rgba(198,167,94,0.12); color: #8B6820; }
.db-badge--pending::before { background: #C6A75E; }

.db-badge--confirmed { background: rgba(58,122,58,0.10); color: #2A6A2A; }
.db-badge--confirmed::before { background: #3A7A3A; }

.db-badge--submitted { background: rgba(40,80,160,0.10); color: #204080; }
.db-badge--submitted::before { background: #4060B0; }

.db-badge--not-submitted { background: rgba(176,64,64,0.08); color: #8B2020; }
.db-badge--not-submitted::before { background: #B04040; }

.db-badge--updated { background: rgba(100,60,160,0.10); color: #502080; }
.db-badge--updated::before { background: #8050C0; }

.db-badge--closed { background: rgba(14,16,20,0.08); color: #40454F; }
.db-badge--closed::before { background: #6B7080; }

.db-badge--open { background: rgba(58,122,58,0.10); color: #2A6A2A; }
.db-badge--open::before { background: #3A7A3A; }

.db-badge--waived { background: rgba(40,120,160,0.10); color: #206080; }
.db-badge--waived::before { background: #3080A0; }
.db-badge--gold { background: rgba(198,167,94,0.15); color: #7A5A10; font-size:11px; padding:2px 8px; border-radius:2px; font-weight:700; display:inline-block; }
.db-table--phase tfoot td { padding: 10px 12px; font-size: 13px; }

/* ══════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════ */
.db-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--light-border);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.db-table thead {
  background: var(--light-bg);
  border-bottom: 1px solid var(--light-border);
}

.db-table th {
  padding: 10px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.db-table td {
  padding: 11px 14px;
  color: var(--dark-text-2);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

.db-table tr:last-child td { border-bottom: none; }

.db-table tr:hover td { background: rgba(198,167,94,0.03); }

.db-table__id {
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.db-table__name {
  font-weight: 600;
  color: var(--dark-text);
}

.db-table__email {
  color: var(--muted);
  font-size: 11px;
}

.db-table__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   FILTERS & SEARCH
══════════════════════════════════════════════════════════ */
.db-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.4rem;
}

.db-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.db-search__input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: #fff;
  border: 1px solid var(--light-border);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.18s;
}

.db-search__input:focus { border-color: var(--gold); }

.db-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.db-select {
  padding: 9px 32px 9px 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7080'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--light-border);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-text);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s;
  letter-spacing: 0.04em;
}

.db-select:focus { border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   DATA FIELD — read-only key/value
══════════════════════════════════════════════════════════ */
.db-fields {
  display: grid;
  gap: 0;
}

.db-field-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: start;
}

.db-field-row:last-child { border-bottom: none; }

.db-field-key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1px;
}

.db-field-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text);
}

/* ══════════════════════════════════════════════════════════
   TEAM MEMBER CARD
══════════════════════════════════════════════════════════ */
.db-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--light-border);
  border: 1px solid var(--light-border);
  margin-bottom: 1.4rem;
}

.db-member {
  background: #fff;
  padding: 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.db-member__leader {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  background: var(--gold-subtle);
  padding: 2px 8px;
}

.db-member__avatar {
  width: 36px;
  height: 36px;
  background: var(--light-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.db-member__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.db-member__role {
  font-size: 11px;
  color: var(--muted);
}

.db-member__email {
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.2rem;
}

.db-member__actions {
  display: flex;
  gap: 6px;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ══════════════════════════════════════════════════════════
   UPLOAD AREA
══════════════════════════════════════════════════════════ */
.db-upload {
  border: 1.5px dashed rgba(198,167,94,0.35);
  background: var(--gold-wash, rgba(198,167,94,0.04));
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s;
  margin-bottom: 1.4rem;
}

.db-upload:hover,
.db-upload.drag-over {
  border-color: var(--gold);
  background: rgba(198,167,94,0.08);
}

.db-upload__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--gold);
  opacity: 0.7;
}

.db-upload__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}

.db-upload__sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.db-upload__browse {
  color: var(--gold-on-light);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* File list */
.db-file-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--light-border);
  border: 1px solid var(--light-border);
}

.db-file-item {
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
}

.db-file-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-file-item__meta {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.db-file-item__date {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.db-file-item__actions {
  display: flex;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════════
   SUBMISSION STATUS BLOCK
══════════════════════════════════════════════════════════ */
.db-submission-status {
  border: 1px solid var(--light-border);
  background: #fff;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.db-submission-status__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
}

.db-submission-status--ok .db-submission-status__icon {
  background: rgba(58,122,58,0.08);
  color: #3A7A3A;
}

.db-submission-status--missing .db-submission-status__icon {
  background: rgba(176,64,64,0.06);
  color: #B04040;
}

.db-submission-status__text {}

.db-submission-status__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.2rem;
}

.db-submission-status__sub {
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.db-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--light-border);
}

.db-empty__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--dark-text-2);
}

.db-empty__sub {
  font-size: 12px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   CONFIRMATION MESSAGE
══════════════════════════════════════════════════════════ */
.db-confirm {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.db-confirm--ok {
  background: rgba(58,122,58,0.08);
  border: 1px solid rgba(58,122,58,0.18);
  color: #2A6A2A;
}

.db-confirm--error {
  background: rgba(176,64,64,0.07);
  border: 1px solid rgba(176,64,64,0.18);
  color: #8B2020;
}

/* ══════════════════════════════════════════════════════════
   EXPORT BUTTONS
══════════════════════════════════════════════════════════ */
.db-export {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.db-export__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.db-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,11,14,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.db-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  position: relative;
}

.db-modal__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-border);
}

.db-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 6px;
}

.db-modal__close:hover { color: var(--dark-text); }

.db-modal__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light-border);
  justify-content: flex-end;
}

/* ══════════════════════════════════════════════════════════
   GRID UTILITIES
══════════════════════════════════════════════════════════ */
.db-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.db-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.db-grid-60-40 { display: grid; grid-template-columns: 3fr 2fr; gap: 1.4rem; }

.db-stack { display: flex; flex-direction: column; gap: 1rem; }
.db-row   { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

.db-divider {
  height: 1px;
  background: var(--light-border);
  margin: 1.4rem 0;
}

.db-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-border);
}

/* ── COMPETITION DETAIL CARD ── */
.db-comp-card {
  background: var(--charcoal);
  color: rgba(220,220,220,0.85);
  padding: 1.8rem;
  border: 1px solid rgba(198,167,94,0.10);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.db-comp-card__challenge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
}

.db-comp-card__name {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255,252,245,0.90);
  line-height: 1.1;
}

.db-comp-card__name strong {
  font-weight: 700;
}

.db-comp-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(198,167,94,0.10);
}

.db-comp-card__meta-item {}

.db-comp-card__meta-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220,220,220,0.35);
  margin-bottom: 0.2rem;
}

.db-comp-card__meta-val {
  font-size: 12px;
  font-weight: 500;
  color: rgba(220,220,220,0.80);
}

.db-comp-card__link {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s;
}

.db-comp-card__link:hover { gap: 10px; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .db-sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .db-sidebar.open { transform: translateX(0); }
  .db-main { margin-left: 0; }
  .db-content { padding: 1.2rem; }
  .db-grid-2, .db-grid-3, .db-grid-60-40 { grid-template-columns: 1fr; }
  .db-login { grid-template-columns: 1fr; }
  .db-login__left { display: none; }
  .db-stat-grid { grid-template-columns: 1fr 1fr; }
  .db-field-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .db-file-item { grid-template-columns: 1fr auto; }
  .db-file-item__date, .db-file-item__meta { display: none; }
}
