/* ======== CSS VARIABLES================ */
:root {
  /* Brand Color System */
  --primary-color: #00875a;
  --primary-hover: #00704a;
  --primary-active: #005a3c;
  --primary-light: #e6f4ea;
  --primary-rgb: 0, 135, 90;

  /* Deep Spruce / Teal Tones */
  --teal-deep: #0a3530;
  --teal-dark: #0d4039;
  --teal-overlay-start: rgba(10, 48, 44, 0.1);
  --teal-overlay-mid: rgba(9, 44, 39, 0.75);
  --teal-overlay-end: #072a26;

  /* Text Colors */
  --text-heading: #0d4039;
  --text-dark: #111827;
  --text-body: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --text-white-dim: rgba(255, 255, 255, 0.85);

  /* Input & Form Controls */
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-border-hover: #9ca3af;
  --input-border-focus: #00875a;
  --input-text: #1f2937;
  --input-placeholder: #9ca3af;
  --input-icon: #9ca3af;
  --input-icon-focus: #00875a;
  --input-focus-ring: 0 0 0 3.5px rgba(0, 135, 90, 0.15);
  --input-height: 48px;

  /* Geometry & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-circle: 50%;

  /* Shadows & Transitions */
  --btn-shadow: 0 4px 14px rgba(0, 135, 90, 0.25);
  --btn-shadow-hover: 0 6px 18px rgba(0, 135, 90, 0.35);
  --social-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  --transition-smooth: all 0.2s ease-in-out;

  /* Font Family */
  --font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
       GLOBAL BASE STYLES
       ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
       MAIN PAGE & ROW LAYOUT
       ========================================================================== */
.auth-container {
  min-height: 100vh;
  width: 100%;
  padding: 0;
}

.auth-row {
  min-height: 100vh;
  margin: 0;
}

/* ==========================================================================
       LEFT HERO PANEL (Image, Gradient Overlay & Typography)
       ========================================================================== */
.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem 3rem 4rem 3rem;
  background-color: var(--teal-deep);
  background-image: url('https://images.pexels.com/photos/5684436/pexels-photo-5684436.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1400&w=900');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 380px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      var(--teal-overlay-start) 0%,
      rgba(10, 48, 44, 0.3) 30%,
      var(--teal-overlay-mid) 62%,
      rgba(8, 38, 34, 0.95) 86%,
      var(--teal-overlay-end) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
}

.hero-title {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-description {
  font-size: clamp(0.875rem, 1.05vw, 0.95rem);
  line-height: 1.6;
  color: var(--text-white-dim);
  max-width: 440px;
  margin: 0;
  font-weight: 400;
}

/* ====== RIGHT FORM PANEL========== */

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url(../images/formbg.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: bottom;
}

/* Ascending Growth Arrows Watermark */
.watermark-arrows {
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);
  pointer-events: none;
  z-index: 0;
}

/* Form Card Wrapper */
.form-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: auto 0;
}

/* Brand Logo */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  text-decoration: none;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-logo-accent {
  position: relative;
  display: inline-block;
}

.brand-logo-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Form Headings */
.auth-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-subheading {
  font-size: 0.925rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Form Fields & Input Box */
.auth-field {
  margin-bottom: 1.35rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.45rem;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--input-height);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.auth-input-group:focus-within {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-focus-ring);
}

.auth-input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.95rem;
  padding-right: 0.65rem;
  color: var(--input-icon);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.auth-input-group:focus-within .auth-input-prefix {
  color: var(--input-icon-focus);
}

.auth-input-control {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 0.15rem;
  font-size: 0.925rem;
  font-family: var(--font-family);
  color: var(--input-text);
}

.auth-input-control::placeholder {
  color: var(--input-placeholder);
  font-weight: 400;
}

/* Password Toggle Button */
.btn-toggle-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--input-icon);
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.btn-toggle-eye:hover {
  color: var(--text-dark);
}

.btn-toggle-eye:focus-visible {
  color: var(--primary-color);
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* Options: Remember Me & Forgot Password */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
  font-size: 0.875rem;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: var(--transition-smooth);
  margin: 0;
}

.auth-checkbox:hover {
  border-color: var(--primary-color);
}

.auth-checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.auth-checkbox::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(0.5px, -0.5px) scale(0);
  transition: 0.15s transform ease-in-out;
}

.auth-checkbox:checked::before {
  transform: rotate(-45deg) translate(0.5px, -0.5px) scale(1);
}

.auth-forgot-link {
  color: var(--teal-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.auth-forgot-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Primary Submit Button */
.btn-auth-submit {
  width: 100%;
  height: 48px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: var(--transition-smooth);
  margin-bottom: 1.75rem;
}

.btn-auth-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-auth-submit:active {
  background-color: var(--primary-active);
  transform: translateY(0);
}

/* Divider */
.auth-separator {
  position: relative;
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  z-index: 1;
}

.auth-separator-text {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 0 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Social Options */
.auth-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.btn-social-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--social-shadow);
  padding: 0;
}

.btn-social-circle:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-social-circle:active {
  transform: translateY(0);
}

.btn-social-circle i {
  font-size: 1.15rem;
}

/* Sign Up Footer */
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-body);
}

.auth-signup-link {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
  transition: var(--transition-smooth);
}

.auth-signup-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}


/* ========== SINGLE SIDEBAR NAVIGATION========================= */
.app-sidebar {
  width: 250px;
  min-height: 100vh;
  background-color: var(--teal-overlay-end);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
}

.sidebar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.25rem;
}

/* Brand Logo */
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0;
}

/* Mobile Backdrop Overlay */
.sidebar-backdrop {
  display: none;
}

.brand-shield-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-title-text {
  color: var(--text-white);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-title-accent {
  position: relative;
  display: inline-block;
}

.brand-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Navigation Menu */
.sidebar-category-title {
  font-size: 0.685rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-white-dim);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sidebar-menu-item i {
  font-size: 1.15rem;
}

.sidebar-menu-item:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-menu-item.active {
  background-color: var(--primary-color);
  color: var(--text-white);
  font-weight: 600;
  box-shadow: var(--btn-shadow);
}

/* Policy Period Bottom Card */
.sidebar-policy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: auto;
}

.policy-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.policy-label {
  color: var(--text-white);
  font-size: 0.825rem;
  font-weight: 600;
}

.policy-badge {
  background-color: var(--primary-color);
  color: var(--text-white);
  font-size: 0.675rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.policy-date-range {
  color: var(--text-white-dim);
  font-size: 0.735rem;
  margin-bottom: 0.45rem;
}

.policy-elapsed-text {
  color: var(--text-white-dim);
  font-size: 0.7rem;
}

/* ================== SIDEBAR COLLAPSED STATE =================== */
body.sidebar-collapsed .app-sidebar {
  width: 78px;
  padding: 1.6rem 0.65rem;
}

body.sidebar-collapsed .sidebar-header-row {
  justify-content: center;
  margin-bottom: 2rem;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  margin-bottom: 0;
}

body.sidebar-collapsed .brand-title-text,
body.sidebar-collapsed .sidebar-category-title,
body.sidebar-collapsed .sidebar-menu-item span,
body.sidebar-collapsed .sidebar-policy-card,
body.sidebar-collapsed #sidebarCloseBtn {
  display: none !important;
}

body.sidebar-collapsed .sidebar-menu-item {
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

body.sidebar-collapsed .sidebar-menu-item i {
  font-size: 1.3rem;
  margin: 0;
}

body.sidebar-collapsed .app-main-wrapper {
  margin-left: 78px;
}

/* ================= MAIN CONTENT CONTAINER========================= */
.app-main-wrapper {
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Navigation Bar */
.dashboard-topbar {
  padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    position: relative;
    z-index: 1010;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

/* Header Toggle Button */
.btn-header-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-header-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(0, 135, 90, 0.3);
  transform: scale(1.03);
}

.btn-header-toggle:active {
  transform: scale(0.97);
}

.greeting-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 0.15rem;
}

.greeting-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Topbar Controls Right */
.topbar-right-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}



/* Notification Center Dropdown */
.notif-dropdown-card {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.notif-item:hover {
  background-color: #f8fafc;
}

.notif-item.unread {
  background-color: #f0fdf4;
}

.badge-date-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  white-space: nowrap;
}

.btn-bell-notification {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bell-notification:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
}

.profile-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 3px 12px 3px 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.profile-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.profile-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

/* Main Dashboard Content Padding */
.dashboard-body {
  padding: 0.5rem 1.5rem;
  flex: 1;
}

/* ============= DASHBOARD CARDS =============== */
.metric-card {
  background: var(--input-bg);
  border: 1px solid #edf2f7;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* KPI Cards (Top 4) */
.kpi-label {
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.kpi-figure {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.kpi-trend-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.kpi-trend-positive {
  color: var(--primary-color);
  font-weight: 600;
}

.kpi-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* Risk Allocation Card */
.card-top-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-primary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.badge-subtle-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.badge-status-excellent {
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.risk-main-figure {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.risk-subtitle-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.chart-legend-wrap {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-size: 0.785rem;
  color: var(--text-muted);
}

.legend-color-box {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
  margin-right: 4px;
}

/* Captive Score Components */
.score-main-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
}

.score-denom-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.score-sub-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Radar Chart Container */
.radar-canvas-box {
  width: 100%;
  max-width: 185px;
  height: 180px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Metric Progress Item */
.metric-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.metric-row-header {
  font-size: 0.785rem;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
}

.metric-row-score {
  font-weight: 700;
  color: var(--text-dark);
}

/* Bootstrap Progress Bar smooth animation */
.progress-bar {
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================BOTTOM SECTION: "Where your equity sits"============================== */
.equity-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.equity-mini-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.equity-serif-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Donut Chart & Center Overlay */
.equity-donut-wrap {
  position: relative;
  width: 165px;
  height: 165px;
  margin: 0 auto;
}

.donut-overlay-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-overlay-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 2px;
}

.donut-overlay-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 4 Fund Cards Grid */
.fund-card-box {
  background: #f4fbf8;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.fund-card-box:hover {
  background: #eaf5f0;
  transform: translateY(-1px);
}

.fund-color-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-circle);
  display: inline-block;
  margin-right: 6px;
}

.fund-title-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
}

.fund-amount-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.fund-percentage-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============= CUSTOM CARD & COMPONENT LAYOUT CLASSES =================== */
.chart-card-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.radar-display-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.donut-display-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.funds-grid-wrapper {
  width: 100%;
}

.subheader-bdr {
    border-bottom: 1px dashed #e7e7e7;
    margin-bottom: 1rem;
    border-spacing: 2px;
}

hr {
    color: #9f9f9f;
}
.brand-title-accent {
    width: 200px;
}
/* Custom field-down validation layout */
.auth-field span.field-validation-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.825rem;
    font-weight: 500;
    color: #dc3545; /* Modern, clear warning red */
    margin-top: 6px;
    animation: slideInError 0.2s ease-out forwards;
}

    /* Automatically attaches a professional exclamation mark icon before error text */
    .auth-field span.field-validation-error::before {
        content: "\F33A"; /* Bootstrap Icons Unicode for bi-exclamation-circle-fill */
        font-family: "bootstrap-icons";
        font-size: 0.9rem;
        font-weight: bold;
    }

/* Changes input field borders smoothly to red when validation fails */
.auth-field input.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fffafb !important;
}

/* Smooth fade-in presentation for error labels */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
