/* NBFC Reporting Platform — distinct shell from the main Finz LMS UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --rp-ink: #0f2740;
  --rp-ink-deep: #0a1b2e;
  --rp-teal: #1a7a6d;
  --rp-teal-bright: #2a9d8f;
  --rp-teal-dark: #15675c;
  --rp-sand: #e8eef2;
  --rp-text: #f4f7fa;
  --rp-muted: #9bb0c3;
  --rp-accent-line: #2a9d8f;
}

body.report-platform {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(42, 157, 143, 0.12), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(15, 39, 64, 0.08), transparent 55%),
    #f3f6f8; 
  padding-bottom: 64px;
  min-height: 100vh;
}

/* —— Header —— */
body.report-platform .navbar.report-shell-nav {
  background: linear-gradient(105deg, var(--rp-ink-deep) 0%, var(--rp-ink) 55%, #164555 100%) !important;
  border-bottom: 3px solid var(--rp-teal-bright) !important;
  box-shadow: 0 8px 24px rgba(10, 27, 46, 0.28);
  min-height: 64px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

body.report-platform .report-shell-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1.25rem;
}

body.report-platform .report-shell-nav .site-logo {
  max-height: 36px;
  width: auto;
  filter: brightness(1.05);
}

body.report-platform .report-brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 0.85rem;
}

body.report-platform .report-brand-mark .product-name {
  color: var(--rp-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

body.report-platform .report-brand-mark .product-tag {
  color: var(--rp-teal-bright);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.report-platform .report-shell-nav .nav-link {
  color: rgba(244, 247, 250, 0.88) !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.75rem !important;
}

body.report-platform .report-shell-nav .nav-link:hover,
body.report-platform .report-shell-nav .nav-link.active {
  color: #fff !important;
  background: rgba(42, 157, 143, 0.22);
}

body.report-platform .report-shell-nav .navbar-toggler-icon {
  filter: invert(1);
}

/* —— Footer —— */
body.report-platform footer.report-shell-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  float: none;
  width: 100%;
  background: linear-gradient(90deg, var(--rp-ink-deep), #123044 60%, #0f3d3a) !important;
  color: var(--rp-text);
  border-top: 3px solid var(--rp-accent-line);
  border-bottom: none !important; /* override tenant orange stripe */
  box-shadow: 0 -6px 20px rgba(10, 27, 46, 0.2);
  padding: 0.65rem 0 !important;
}

body.report-platform footer.report-shell-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

body.report-platform footer.report-shell-footer .footer-platform {
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.report-platform footer.report-shell-footer .footer-platform span {
  color: var(--rp-teal-bright);
  font-weight: 700;
}

body.report-platform footer.report-shell-footer .footer-meta {
  color: var(--rp-muted);
  font-size: 0.85rem;
}

/* —— Replace Finz purple/magenta accents with teal —— */
body.report-platform h1,
body.report-platform h2,
body.report-platform h3,
body.report-platform h4,
body.report-platform h5,
body.report-platform .h4 {
  color: var(--rp-ink) !important;
}

body.report-platform a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
  color: var(--rp-teal);
}

body.report-platform a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
  color: var(--rp-teal-dark);
}

body.report-platform .text-primary {
  color: var(--rp-teal) !important;
}

body.report-platform .border-bottom {
  border-bottom-color: rgba(26, 122, 109, 0.25) !important;
}

body.report-platform .page-item.active .page-link {
  background-color: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
  color: #fff !important;
}

body.report-platform .page-link {
  color: var(--rp-teal) !important;
}

body.report-platform .page-link:hover {
  color: var(--rp-teal-dark) !important;
  background-color: rgba(42, 157, 143, 0.1);
}

/* —— Buttons match header/footer teal —— */
body.report-platform .btn-primary,
body.report-platform .btn-theme {
  color: #fff !important;
  background-color: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
  font-weight: 600;
  box-shadow: none !important;
}

body.report-platform .btn-primary:hover,
body.report-platform .btn-primary:focus,
body.report-platform .btn-primary:active,
body.report-platform .btn-primary.active,
body.report-platform .btn-theme:hover,
body.report-platform .btn-theme:focus {
  color: #fff !important;
  background-color: var(--rp-teal-dark) !important;
  border-color: var(--rp-teal-dark) !important;
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.35) !important;
}

body.report-platform .btn-outline-primary {
  color: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
  background: transparent !important;
}

body.report-platform .btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
}

body.report-platform .btn-primary:disabled,
body.report-platform .btn-primary.disabled {
  background-color: var(--rp-teal) !important;
  border-color: var(--rp-teal) !important;
  opacity: 0.65;
}

/* Login / admin cards */
body.report-platform.adminuser .card,
body.report-platform .card {
  border: 0;
  border-top: 4px solid var(--rp-teal);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 39, 64, 0.12) !important;
}

body.report-platform.adminuser .card h4,
body.report-platform .card h4 {
  color: var(--rp-ink) !important;
  font-weight: 700;
}

@media (max-width: 576px) {
  body.report-platform .report-brand-mark .product-name {
    font-size: 0.95rem;
  }

  body.report-platform footer.report-shell-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
