/* AxisVantage — Global Styles
   Clean, minimal design language */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-hero: linear-gradient(135deg, #2C3E50 0%, #3D4F5E 40%, #4A5D6E 100%);
  --bg-hero-solid: #3D4F5E;
  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --text-label: #9CA3AF;
  --text-hero: #FFFFFF;
  --text-hero-sub: rgba(255,255,255,0.65);
  --accent-navy: #0D1B2A;
  --accent-purple: #534AB7;
  --accent-blue: #185FA5;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --status-success: #1D9E75;
  --status-warning: #BA7517;
  --status-pending: #9CA3AF;
  --status-dot-green: #22C55E;
  --status-dot-amber: #F59E0B;
  --status-dot-red: #EF4444;
  --topbar-height: 56px;
  --nav-height: 44px;
}

/* ===== DARK MODE ===== */
body.dark-mode {
  --bg-primary: #0F1419;
  --bg-secondary: #0F1419;
  --bg-card: #1A1F26;
  --bg-hero: linear-gradient(135deg, #1A2530 0%, #1E2A35 40%, #243040 100%);
  --bg-hero-solid: #1E2A35;
  --text-primary: #E8EAED;
  --text-secondary: #9AA0A8;
  --text-label: #6B7280;
  --accent-navy: #A8B8C8;
  --border: #2A3038;
  --border-light: #232930;
}

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

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-logo {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex-shrink: 0;
}
body.dark-mode .topbar-logo {
  filter: brightness(0) invert(0.8);
}

.topbar-wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar-client {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-green { background: var(--status-dot-green); }
.status-dot-amber { background: var(--status-dot-amber); }
.status-dot-red { background: var(--status-dot-red); }

.topbar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.topbar-icon-btn:hover {
  color: var(--text-primary);
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 11px;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.topbar-avatar:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ===== HORIZONTAL NAVIGATION ===== */
.nav-horizontal {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding: 0 32px;
  gap: 0;
  z-index: 90;
  overflow-x: auto;
}

.nav-tab {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-label);
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom-color: var(--accent-navy);
}

/* ===== CONTENT AREA ===== */
.content-area {
  margin-top: calc(var(--topbar-height) + var(--nav-height));
  min-height: calc(100vh - var(--topbar-height) - var(--nav-height) - 48px);
  padding: 0;
}

/* ===== APP FOOTER ===== */
.app-footer {
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-label);
}
.app-footer-right {
  display: flex;
  gap: 20px;
}
.app-footer-right a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  text-decoration: none;
}
.app-footer-right a:hover {
  color: var(--text-secondary);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
}

/* ===== HERO BANNERS ===== */
.hero-banner {
  background: var(--bg-hero);
  padding: 40px 48px 36px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 120px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-date {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.hero-greeting {
  font-family: 'Palatino Linotype', 'Palatino', serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--text-hero);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-status-msg {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.hero-action-btn:hover {
  background: rgba(255,255,255,0.15);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
}

.hero-stat {
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  min-width: 140px;
}

.hero-stat:first-child {
  border-radius: 8px 0 0 8px;
}

.hero-stat:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.hero-stat-value {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-hero);
}

.hero-stat-delta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  margin-top: 2px;
  font-weight: 300;
}

.delta-up { color: #6EE7B7; }
.delta-down { color: #FCA5A5; }
.delta-flat { color: rgba(255,255,255,0.35); }

/* ===== SECTION HEADERS (accent bar style) ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 8px;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-header-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent-navy);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header-action {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.section-header-action:hover { color: var(--text-secondary); }

/* Legacy section-label (still works, simpler) */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent-navy);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== QUICK LINK CARDS ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.1s;
  cursor: pointer;
}
.quick-link-card:hover {
  border-color: var(--text-label);
  background: var(--bg-card);
}
.quick-link-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-label);
  flex-shrink: 0;
}
.quick-link-card span {
  font-size: 14px;
  font-weight: 400;
}

/* ===== PAGE TITLES ===== */
.page-title {
  font-family: 'Palatino Linotype', 'Palatino', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-label); }

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
