/* =========================================================
   Digirepo Next — Main CSS
   Brand: Yellow #FFF000 (face), Orange #FF5600 (accent)
   Layout: header (56px) + sidebar (220px) + main
   ========================================================= */

:root {
  --brand-yellow:       #FFF000;
  --brand-orange:       #FF5600;
  --sidebar-width:      220px;
  --header-height:      56px;
  --header-bg:          #1e3a5f;
  --sidebar-bg:         #ffffff;
  --sidebar-link-color: #222222;
  --sidebar-active-bg:  #fff3e0;
  --sidebar-active-color: #cc4500;
  --sidebar-active-border: var(--brand-orange);
  --text:               #111111;
  --text-sub:           #333333;
  --bg-alt:             #f7f7f8;
  --border:             #e6e6e6;
  --data-blue:          #007BFF;
  --data-steel:         #5C84A3;
}

/* ── App shell ────────────────────────── */
body.app-body {
  margin: 0;
  background: #f1f3f5;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Header ───────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  color: #fff;
  z-index: 1030;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Brand badge: yellow background, dark text — "yellow as a solid face" */
.app-brand {
  display: inline-flex;
  align-items: center;
  background: var(--brand-yellow);
  color: #111111;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: 4px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.app-brand:hover { opacity: .9; color: #111111; text-decoration: none; }

.app-layout {
  display: flex;
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────── */
.app-sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 0.75rem 0 1.5rem;
  z-index: 900;
}

.sidebar-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  padding: 0.75rem 1rem 0.2rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--sidebar-link-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
}
.sidebar-link i { opacity: .75; }
.sidebar-link:hover {
  background: #f5f5f5;
  color: #000;
}
.sidebar-link:hover i { opacity: 1; }
.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-color);
  font-weight: 700;
  border-left: 3px solid var(--sidebar-active-border);
}
.sidebar-link.active i { opacity: 1; }

.sidebar-divider {
  margin: 0.4rem 0;
  border-color: var(--border);
}

/* ── Main content ─────────────────────── */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: calc(100vh - var(--header-height));
}

/* ── Public pages ─────────────────────── */
body.public-body {
  font-size: 0.9rem;
}
.public-nav {
  background: var(--header-bg);
}
.public-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--border);
}
.hero-section {
  background: linear-gradient(135deg, #eef2ff 0%, #f8faff 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ── Dashboard stat items ─────────────── */
.stat-item { padding: 0.5rem 0; }
.stat-label { font-size: 0.75rem; color: #6c757d; margin-bottom: 0.25rem; }
.stat-value { font-size: 0.9rem; font-weight: 600; color: #212529; }

/* ── Quick action cards (dashboard) ──── */
.quick-action-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .18s, transform .18s;
  text-decoration: none;
  color: inherit;
}
.quick-action-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.quick-action-card .qa-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.75rem;
}
.quick-action-card .qa-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ── Utilities ────────────────────────── */
.table th { font-weight: 600; }
.badge-platform {
  background: var(--bg-alt);
  color: #555;
  border: 1px solid var(--border);
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .app-sidebar { display: none; }
  .app-main { margin-left: 0; }
}
