/* ============= LAYOUT CONTAINER CLASSES ============= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============= PAGE BACKGROUND ============= */
body {
  background: #f8f9fa;
  color: #111;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ================= HERO SECTION (Blue Rectangle) ================ */
.hero-section {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 80%);
  color: #fff;
  border-radius: 2rem;
  padding: 14px 18px;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
}

.logo-text {
  color: #fff !important;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1rem;
  color: #f0f0f0;
}

/* ========== NAVIGATION BUTTONS INSIDE HERO ========== */
/* ================= NAVIGATION BUTTONS (Balanced Layout) ================= */
.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Regular navigation buttons (About, Policies, etc.) */
.hero-nav .nav-group {
  display: flex;
  gap: 8px;
}

/* Right-side special buttons (Submit + Archive) */
.hero-nav .action-group {
  display: flex;
  gap: 10px;
  margin-left: auto;                /* push group to the far right */
  margin-right: 10px;               /* small gap from right edge */
}

.hero-nav .btn {
  font-size: 0.78rem;
  font-weight: 600;
  border-width: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.hero-nav .btn:hover,
.hero-nav .btn:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #ffe082;
}


/* ========== SUBMIT & ARCHIVE BUTTONS ========== */
.hero-btn-primary,
.hero-btn.hero-btn-primary {
  background: #ffd600 !important;
  color: #0c64f3 !important;
  font-weight: bold;
  border-radius: 25px;
  border: none;
  box-shadow: 0 3px 12px #ffd60040;
  margin-left: 10px;
  padding: 6px 16px;
}
.hero-btn-primary:hover {
  background: #ffe75c !important;
  color: #0a4ccc !important;
}

.modern-btn-outline,
.hero-btn-outline {
  border: 1.5px solid #0c64f3 !important;
  color: #0c64f3 !important;
  background: transparent;
  margin-left: 5px;
  margin-right: 10px;
  padding: 6px 14px;
  border-radius: 25px;
}
.modern-btn-outline:hover {
  background: #eaf2ff !important;
  color: #0a55d3 !important;
}

/* ========== INFO BLOCKS & FOOTER ========== */
/* =================== PAGE BLOCKS (Aligned with Header) =================== */
.info-block {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(30,40,90,0.07);
  padding: 24px;
  margin: 24px auto;
  width: 100%;                     /* ensures same width as header curvature */
  max-width: 1100px;              /* consistent with header container */
  transition: width 0.3s ease;
}

.footer {
  margin-top: 64px;
  padding: 20px 0;
  background: #e3eafc;
  color: #444;
  border-radius: 18px;
  font-size: 0.95em;
}

/* ========== MOBILE ADAPTATION ========== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .hero-nav {
    margin-top: 10px;
  }
  .hero-nav a.btn {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
}

/* ========== GENERAL LINK COLORS ========== */
a { color: #0056b3; text-decoration: none; }
a:hover { color: #003580; }

/* ========== FULL WIDTH DISABLED (keep contained) ========== */
.full-width, .container-fluid {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure hero box doesn’t stretch edge-to-edge */
.header-box, .modern-nav {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  border-radius: 2rem !important;
}

/* ========== FOOTER ENHANCEMENT (Refined to match contained layout) ========== */
.footer {
  background: linear-gradient(180deg, #eaf1fb 0%, #dee7f3 100%) !important;
  border-top: 1px solid #d0d8e2 !important;
  border-radius: 18px !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  padding: 16px 0 !important;
  margin-top: 40px !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  color: #333 !important;
  line-height: 1.5 !important;
}

/* Footer links (copyright, contact, etc.) */
.footer a {
  color: #0d6efd !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin: 0 8px !important;
}
.footer a:hover {
  color: #0a4ccc !important;
  text-decoration: underline !important;
}

/* Small separator style between footer links */
.footer .separator {
  color: #bbb;
  margin: 0 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .footer {
    font-size: 0.85rem !important;
    padding: 14px 8px !important;
  }
}

/* ======== LOGIN BUTTON (Compact version) ======== */
.login-btn {
  color: #e3f2fd !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 25px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 6px;
  transition: all 0.2s ease-in-out;
}
.login-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: #ffe082;
}

/* ======= TOP-RIGHT LOGIN BUTTON ======= */
.login-top-right {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
}
.login-btn {
  color: #e3f2fd !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 25px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.login-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: #ffe082;
}

/* ======= SUBMIT & ARCHIVE BUTTONS ALIGNMENT ======= */
.hero-nav {
  margin-top: 6px;
  margin-right: 8px;     /* small gap from right edge */
}
.hero-nav a.hero-btn-primary,
.hero-nav a.modern-btn-outline {
  margin-right: 4px;
}

.hero-section {
  position: relative;
}

@media (max-width: 768px) {
  .info-block {
    width: 96%;
    padding: 18px;
  }
}

/* =====================================================
   GLOBAL TEXT SIZE REDUCTION (Body Content Only)
   Excludes Header (.hero-section) and Footer (.footer)
   ===================================================== */
main, .container, .content-area, .page-body, .info-block, .card, .bg-white {
  font-size: 0.94rem !important;   /* about 6% smaller than default */
  line-height: 1.55 !important;    /* slightly tighter but still readable */
  color: #111 !important;          /* preserve readability */
}

/* Optionally reduce heading sizes inside content */
main h1, .container h1, .page-body h1 {
  font-size: 1.45rem !important;
}
main h2, .container h2, .page-body h2 {
  font-size: 1.25rem !important;
}
main h3, .container h3, .page-body h3 {
  font-size: 1.1rem !important;
}

/* ======= Archive Button — Subtle White-to-Blue Hover ======= */
.hero-nav .action-group a.modern-btn.modern-btn-outline {
  background: #f8fbff !important;   /* nearly white with slight blue tint */
  color: #124064 !important;        /* same text color */
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.25s ease; /* smooth hover transition */
}

/* Hover effect — light blue background, same text color */
.hero-nav .action-group a.modern-btn.modern-btn-outline:hover {
  background: #d6e8ff !important;   /* light blue hover background */
  color: #124064 !important;        /* no text color change */
  text-decoration: none !important;
}

/* =========================================
   Archive Page – Unified Chart Styling (Stable)
   ========================================= */

/* 🔷 Layout: two charts side by side */
.chart-section {
  display: flex;
  justify-content: center;        /* Center both charts */
  align-items: flex-start;
  gap: 20px;                      /* Space between charts */
  margin-top: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;                /* Stack if screen is narrow */
}

/* 🔷 Each chart card (container) */
.chart-wrap {
  background: #ffffff;            /* White background */
  border-radius: 12px;            /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);  /* Soft shadow */
  padding: 10px 12px;
  width: 180px;                   /* Fixed width for equal size */
  height: 150px;                  /* Fixed height for equal size */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.2s ease-in-out;
  transform: none;                /* ✅ Disable hover zoom effect */
  will-change: box-shadow;        /* ✅ Prevent browser reflow on hover */
}

/* 🔷 Hover: same size, only softer glow */
.chart-wrap:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: none;                /* ✅ Do not scale or move */
}

/* 🔷 Chart area inside the box */
.chart-bg {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔷 Chart canvases (main + AI) */
.main-chart,
.ai-chart {
  width: 160px !important;        /* ✅ Same canvas width */
  height: 120px !important;       /* ✅ Same canvas height */
  background: #ffffff;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 🔷 Optional text label */
.text-muted {
  color: #6c757d;
  font-size: 0.85em;
  margin-top: 4px;
  text-align: center;
}

/* 🔷 Responsive layout for smaller screens */
@media (max-width: 768px) {
  .chart-wrap {
    width: 150px;
    height: 130px;
  }
  .main-chart,
  .ai-chart {
    width: 130px !important;
    height: 100px !important;
  }
}
.card.card-body {
    width: 100%;
    max-width: none;
    margin: 0 auto 2rem auto;
    padding: 2rem 3rem;
    box-shadow: 0 2px 16px #0001;
}

.na-stepper-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto 2.5rem auto;
    gap: 0;
    max-width: 980px;
}
.na-stepper-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.na-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    font-weight: bold;
    color: #888;
    font-size: 1.25em;
    border: 2.5px solid #e9ecef;
    margin-bottom: 0.15rem;
    box-sizing: border-box;
    transition: all 0.18s;
}
.na-step.active {
    background: #0d6efd;
    color: #fff;
    border: 2.5px solid #0d6efd;
    box-shadow: 0 0 0 2px #e0eaff;
}
.na-step.finished {
    background: #198754;
    color: #fff;
    border: 2.5px solid #198754;
}
.na-stepper-label {
    font-size: 1.04em;
    color: #222;
    word-break: break-word;
    line-height: 1.13;
    max-width: 120px;
    min-height: 34px;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .na-stepper-bar { max-width: 98vw; padding: 0 1vw;}
    .na-step { width: 30px; height: 30px; font-size: 1.03em;}
    .na-stepper-label { font-size: 0.95em; max-width: 78px; min-height: 24px;}
}
@media (max-width: 600px) {
    .na-step { width: 22px; height: 22px; font-size: 0.7em;}
    .na-stepper-label { font-size: 0.82em; max-width: 54px; min-height: 16px;}
}

.step-navigation {
  display: flex;
  justify-content: center;
  gap: 20px; /* spacing between steps */
  margin-bottom: 30px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
}

.step-number {
  background-color: #007bff;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 4px;
}

.step-label {
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

