/* =============================================================
   FELDA Dashboard — Component Styles
   Reference: design-reference.jpeg + refrence-mobile.md (_StatsCard)
   Dreamy Flutter Aesthetic Applied:
     - backdrop-filter blur(16px) on all glass cards
     - BoxShadow: blurRadius 20, offset 10, no spread (Flutter spec)
     - letter-spacing -0.3 on numbers (GoogleFonts.inter spec)
     - Gradient teal on CTAs, badges, count pills
     - Subtle geometric bg pattern (GeometricPatternPainter equivalent)
     - Glowing icon hover rings, floating hover lift
     - Auto-scroll news section (CSS animation horizontal)
   ============================================================= */

/* ── Global — matches Flutter: Color(0xFFF9FAFB) + GeometricPatternPainter ── */
body,
.layout-wrapper,
.layout-container,
.layout-page,
.content-wrapper {
  background-color: #f9fafb !important;
  /* GeometricPatternPainter CSS equivalent:
     Flutter draws small diagonal diamond outlines (rhombuses) in a grid.
     We replicate with an SVG data-URI diamond shape tiled at 28px. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 1 L27 14 L14 27 L1 14 Z' fill='none' stroke='rgba(4,120,87,0.055)' stroke-width='0.8'/%3E%3C/svg%3E") !important;
  background-size: 28px 28px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.01em;
}
/* Dashboard page only — remove container padding so hero fills edge-to-edge */
.fdb-page .content-wrapper > .container-xxl,
.fdb-page .content-wrapper > .container-fluid {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL FELDA NAVBAR  — felda-hero-navbar
   Shown on ALL pages via layouts/sections/navbar/navbar.blade.php
   Styled as a compact dark-green header strip
═══════════════════════════════════════════════════════════ */
.felda-hero-navbar {
  width: 100%;
  background: linear-gradient(135deg, #0a2e1a 0%, #0d3d22 60%, #0f4d2a 100%);
  padding: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.felda-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem;
  min-height: 54px;
}

/* ── Brand (left) ── */
.felda-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.felda-hero-logo-wrap img {
  height: 34px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}
.felda-hero-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.felda-hero-brand-name {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.felda-hero-brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ── Tagline pill (centre) ── */
.felda-hero-tagline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.felda-tagline-pill {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ── Controls (right) ── */
.felda-hero-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.felda-hero-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  text-decoration: none;
  font-size: 1rem;
  transition: background .18s;
  cursor: pointer;
}
.felda-hero-avatar-btn:hover { background: rgba(255,255,255,0.2); }
.felda-hero-avatar-btn i { font-size: 1rem; color: #fff; }


/* ═══════════════════════════════════════════════════════════
   HERO WRAP
   Flutter: SizedBox(height: 235.h) → Stack with nursery-pahang
   ClipRRect(bottomLeft: 7.r, bottomRight: 7.r)
═══════════════════════════════════════════════════════════ */
.fdb-hero-wrap {
  position: relative;
  height: 240px;          /* dark plantation image area */
  overflow: visible;      /* cards bleed below the image boundary */
  display: block;
}

/* nursery-pahang.png — shifted to 70% to show field rows, not sky */
.fdb-hero-img {
  position: absolute;
  inset: 0;
  background: url('/assets/img/backgrounds/nursery-pahang.png') center 80% / cover no-repeat;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 0;
}

/* Flutter GeometricPatternPainter equivalent — diagonal diamond mesh over the hero image */
.fdb-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Same SVG diamond pattern, but white at 6% so it shows on dark hero */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 1 L27 14 L14 27 L1 14 Z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  pointer-events: none;
}

/* Flutter hero overlay spec (rebrand-design.md §4.1):
   "Overlaid with a faint plantation/forest image background at opacity 0.2"
   = the IMAGE shows strongly; gradient is the 0.2-opacity layer on top.
   We flip: image is the base, gradient overlay at low opacity for readability */
.fdb-hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 43, 26, 0.55) 0%,    /* #0d2b1a — very dark forest */
    rgba(26, 92, 56, 0.35) 50%,   /* #1a5c38 — deep green */
    rgba(15, 118, 110, 0.45) 100% /* #0f766e — teal */
  );
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 1;
}

/* ── FELDA logo + tagline centred on hero ── */
/* Flutter: Positioned(top: 16.h + padding.top) → Column(logo, gap, tagline) */
.fdb-hero-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.1rem;
  gap: 0.35rem;
}

.fdb-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.fdb-brand-logo {
  height: 79px;   /* +15% from 69px (+30% total from original 60px) */
  width: auto;
  object-fit: contain;
  /* NO filter — logo already uses white text naturally visible on dark hero */
  /* The orange 'f' icon and white text show correctly without inversion */
  opacity: 0.97;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.fdb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.fdb-brand-name {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.fdb-brand-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Tagline pill — Flutter: white.withOpacity(0.15) + border 0.5 + shadow 0 1 text */
.fdb-tagline {
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.35rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.015em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 0.3rem;
  /* Dreamy: very faint glow */
  box-shadow: 0 0 20px rgba(20,184,166,0.15);
}

/* ── Top-right avatar ── */
.fdb-hero-topright {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  z-index: 10;
}
.fdb-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fdb-avatar-btn:hover { background: rgba(255,255,255,0.28); }
.fdb-avatar-btn i { font-size: 1.3rem; color: #fff; }

/* ── Analytics label — sits INSIDE the hero, above the cards row
   Cards are at bottom:-75px, so label must be above bottom:85px at minimum */
.fdb-hero-analytics-label {
  position: absolute;
  bottom: 95px;     /* enough above the overflowing cards */
  left: 1.4rem;
  z-index: 5;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   4 SEPARATE STAT CARDS — fdb-srow
   Each card: white frosted glass, BorderRadius 20px, shadow
   Mirrors reference: 4 individual rounded-square cards on hero bg
═══════════════════════════════════════════════════════════ */

/* Row of 4 cards — ABSOLUTELY POSITIONED straddling hero/content boundary */
/* Flutter equivalent: Positioned(bottom: -20.h, child: _StatsCard()) */
.fdb-srow {
  position: absolute;
  bottom: -75px;        /* cards overlap below the hero boundary */
  left: 1.1rem;
  right: 1.1rem;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.fdb-srow-raised {
  bottom: -45px;
}

/* ── Base card — Flutter: BackdropFilter(blur 10) + white.withOpacity(0.8)
   ENHANCED: blur(16) for dreamier glass, deeper shadow ── */
.fdb-scard {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: 20px;
  box-shadow:
    0 10px 20px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.04);
  padding: 14px 14px 6px;  /* reduced bottom — chart labels get their own space */
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;        /* FIX: allow x-axis labels to render outside card boundary */
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}
.fdb-scard:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.14), 0 4px 10px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* ── All 4 cards equal flex ── */
.fdb-scard-feat { flex: 1; }

/* Deprecated variants kept for safety */
.fdb-scard-trio { flex: 1; }
.fdb-scard-side { flex: 1; }


/* Card header row (number+label on left, badge on right) */
.fdb-sc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* ── Number ── ENHANCED: tighter letter-spacing (-0.3) matching GoogleFonts.inter spec */
.fdb-sc-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;  /* Flutter: letterSpacing: -0.3 */
  line-height: 1.1;
}
/* Label below number */
.fdb-sc-lbl {
  font-size: 0.68rem;
  color: #6B7280;
  font-weight: 400;
  margin-top: 1px;
}

/* Green icon badge — ENHANCED: gradient teal (Flutter LinearGradient) */
.fdb-sc-badge {
  background: linear-gradient(
    135deg,
    rgba(20,184,166,0.16) 0%,
    rgba(4,120,87,0.10) 100%
  );
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 5px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  border: 1px solid rgba(4,120,87,0.10);
}

/* Small inline unit label: "MT", "sites" */
.fdb-sc-unit {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 3px;
  vertical-align: middle;
}

/* Secondary sub-line: seedling count etc. */
.fdb-sc-sub {
  font-size: 0.6rem;
  color: #9ca3af;
  font-weight: 400;
  margin-top: 2px;
}


/* Chart containers */
.fdb-sc-chart    { flex: 1; min-height: 90px; margin-top: 6px; }
.fdb-sc-chart-sm { min-height: 72px; flex: 1; margin-top: 4px; }

/* Small icon in card 3 header */
.fdb-sc-icon-sm { font-size: 1.1rem; color: #047857; }

/* ── Trio row (card 2) — fills full card height, stacks trio on top + search on bottom ── */
.fdb-scard-trio {
  flex: 1;
  display: flex;
  flex-direction: column;   /* trio card itself is a column */
}
.fdb-trio {
  display: flex;
  align-items: stretch;     /* columns fill the same height */
  gap: 0;
  flex: 1;                  /* GROW to fill all available vertical space */
  margin-bottom: 10px;
}

/* Each trio column — vertically centred content, full height */
.fdb-tc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* vertically centre within the flex height */
  min-width: 0;
  padding: 8px 4px;
  gap: 3px;
}

.fdb-tc-icon {
  font-size: 1.3rem;        /* larger icon */
  color: #047857;
  margin-bottom: 4px;
}

.fdb-tc-val-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fdb-tc-val {
  font-size: 1.05rem;       /* bigger number */
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.fdb-tc-arrow {
  font-size: 0.6rem;
  color: #10B981;
}

.fdb-tc-lbl {
  font-size: 0.62rem;
  color: #6B7280;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.fdb-tc-diff {
  font-size: 0.58rem;
  font-weight: 600;
  color: #10B981;
  line-height: 1;
}

/* Small sub-line in trio column (e.g. "2,671,183 anak benih") */
.fdb-tc-sub {
  font-size: 0.52rem;
  color: #9ca3af;
  font-weight: 400;
  margin-top: 1px;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* OSH badge colour variants */
.fdb-sc-badge-warn {
  background: rgba(239,68,68,0.10) !important;
  color: #dc2626 !important;
}
.fdb-sc-badge-ok {
  background: rgba(16,185,129,0.12) !important;
  color: #059669 !important;
}

/* Thin vertical divider between trio columns */
.fdb-tv-div {
  width: 1px;
  align-self: stretch;      /* full height of the flex row */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #D1D5DB 20%,
    #D1D5DB 80%,
    transparent 100%
  );
  flex-shrink: 0;
  margin: 0 4px;
}

/* Search inside card 2 — with focus ring and appear-on-type submit btn */
.fdb-sc-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,250,251,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fdb-sc-search:focus-within {
  border-color: rgba(4,120,87,0.35);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.10);
}
.fdb-sc-search > i { font-size: 0.9rem; color: #9CA3AF; flex-shrink: 0; }
.fdb-sc-search input {
  border: none; outline: none; background: transparent;
  font-size: 0.78rem; color: #111827; width: 100%;
  font-family: inherit;
}
.fdb-sc-search input::placeholder { color: #9CA3AF; }

/* Arrow button — appears when user has typed something */
.fdb-sc-search-btn {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #047857, #14b8a6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, opacity 0.18s;
}
.fdb-sc-search-btn:hover { transform: scale(1.1); }
.fdb-sc-search-btn i { font-size: 0.75rem; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   CONTENT AREA
   Flutter spec: Color(0xFFF9FAFB) + GeometricPatternPainter
   Content area overrides with solid colour so the global SVG diamond
   pattern shows through from the body bg — no separate pattern needed.
═══════════════════════════════════════════════════════════ */
.fdb-content {
  background: transparent;  /* inherits body bg + GeometricPatternPainter */
  padding: 90px 1.25rem 5rem;
}

.fdb-content-after-hero {
  padding-top: 70px;
}

.fdb-content.fdb-content-tight {
  padding-top: 1.25rem;
}

.fdb-search-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fdb-search-pill i { font-size: 1rem; color: #9ca3af; flex-shrink:0; }
.fdb-search-pill input {
  border:none; outline:none; background:transparent;
  font-size: 0.85rem; color: #111827; width: 100%;
  font-family: inherit;
}
.fdb-search-pill input::placeholder { color: #9ca3af; }

/* ── Panel — ENHANCED: Flutter boxShadow blurRadius:6, offset:(0,2), spread:0 */
.fdb-panel {
  background: #fff;
  border-radius: 20px;          /* Flutter: BorderRadius.circular(20.r) */
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.03);
  padding: 1rem;
  transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
              transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.fdb-panel:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}
.fdb-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.fdb-panel-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  margin: 0;
}

.fdb-page .fdb-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  background: #fff;
}

.fdb-page .fdb-table-wrap-scroll {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: auto;
  background: #fff;
}

.fdb-page .fdb-table {
  margin: 0;
}

.fdb-page .fdb-table thead th {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.72);
  background: rgba(249,250,251,0.92);
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
  white-space: nowrap;
}

.fdb-page .fdb-table tbody td {
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  vertical-align: middle;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.fdb-page .fdb-table tbody tr:hover {
  background: rgba(4,120,87,0.04);
}

.fdb-page .fdb-table-compact thead th,
.fdb-page .fdb-table-compact tbody td {
  padding: 0.62rem 0.75rem;
}

.fdb-page .fdb-table tbody tr.bg-label-secondary {
  background: rgba(17,24,39,0.04) !important;
}

.fdb-page .fdb-table tbody tr.bg-label-primary {
  background: rgba(20,184,166,0.10) !important;
}

/* ── 3-column grid ── */
.fdb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 1199px) { .fdb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px)  { .fdb-grid { grid-template-columns: 1fr; } }

/* ── Operational Module cards — ENHANCED: deeper shadow, hover glow ── */
.fdb-module-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 0.55rem;
  text-decoration: none;
  background: #fff;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.fdb-module-card:last-child { margin-bottom: 0; }
.fdb-module-card:hover {
  box-shadow: 0 8px 24px rgba(4,120,87,0.10), 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-2px);
  border-color: rgba(4,120,87,0.10);
}
.fdb-module-body { flex: 1; min-width: 0; }
.fdb-module-title { font-size: .85rem; font-weight:700; color:#111827; margin:0 0 .22rem; letter-spacing: -0.2px; }
.fdb-module-desc  {
  font-size:.7rem; color:#6b7280; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3;
  -webkit-box-orient:vertical; overflow:hidden; margin:0;
}
.fdb-module-thumb {
  flex-shrink:0; width:78px; height:78px;
  border-radius:10px; object-fit:cover; background:#e5e7eb;
  transition: transform 0.35s ease;
}
.fdb-module-card:hover .fdb-module-thumb { transform: scale(1.04); }

/* ── NEW badge — ENHANCED: animated green glow pulse (Flutter-like badge) ── */
@keyframes fdb-new-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,92,56,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(26,92,56,0); }
}
.fdb-badge-new {
  display:inline-block; background:#1a5c38; color:#fff;
  font-size:.57rem; font-weight:900; text-transform:uppercase;
  letter-spacing:.06em; border-radius:4px; padding:2px 7px; margin-top:.4rem;
  animation: fdb-new-pulse 2.5s infinite;
}

/* ── Quick Access 4×3 grid ── */
/* Flutter: _buildMenuItem → 4 per row, rounded-square icon container */
.fdb-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.fdb-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: transform .2s ease;
}
.fdb-quick-item:hover { transform: translateY(-3px); }

/* Flutter: Container(padding:10.r, r:20.r, color:#047857.withOpacity(0.05))
   ENHANCED: gradient bg + border + glowing ring on hover */
.fdb-quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(4,120,87,0.07) 0%,
    rgba(4,120,87,0.03) 100%
  );
  border: 1px solid rgba(4,120,87,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.fdb-quick-item:hover .fdb-quick-icon {
  background: linear-gradient(
    135deg,
    rgba(4,120,87,0.15) 0%,
    rgba(20,184,166,0.10) 100%
  );
  box-shadow:
    0 4px 14px rgba(4,120,87,0.20),
    0 0 0 3px rgba(20,184,166,0.10);
  transform: translateY(-2px);
  border-color: rgba(4,120,87,0.22);
}
/* Flutter: icon color #047857 size 22.r */
.fdb-quick-icon i { font-size: 1.3rem; color: #047857; transition: color 0.2s; }
.fdb-quick-item:hover .fdb-quick-icon i { color: #047857; }

/* Flutter: label Inter 11.sp w600 color:#374151 letterSpacing:-0.2 */
.fdb-quick-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.2px;
  max-height: 28px;
  overflow: hidden;
}

/* ── Quick Status grid ── */
.fdb-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fdb-status-card {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.045);
  background: #fff;
  text-decoration: none;
  transition: all .2s;
}
.fdb-status-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform:translateY(-2px); }
.fdb-status-body { flex:1; min-width:0; }
.fdb-status-title { font-size:.75rem; font-weight:700; color:#111827; margin:0 0 .18rem; line-height:1.25; }
.fdb-status-desc  {
  font-size:.62rem; color:#6b7280; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden; margin:0;
}
.fdb-status-thumb {
  flex-shrink:0; width:52px; height:52px;
  border-radius:7px; object-fit:cover; background:#e5e7eb;
}
.fdb-si {
  display: flex; align-items: center; justify-content: center;
}
.fdb-si i { font-size: 1.25rem; color: rgba(255,255,255,.92); }

/* ── Quick Status: chart bar thumbnail (mirrors reference screenshot) ── */
.fdb-status-thumb-chart {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: rgba(4,120,87,0.04);
  border: 1px solid rgba(4,120,87,0.10);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 6px 6px;
  overflow: hidden;
}
.fdb-chart-lines {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 100%;
}
.fdb-chart-line {
  flex: 1;
  background: rgba(4,120,87,0.25);
  border-radius: 2px 2px 0 0;
  transition: height .3s ease;
}
.fdb-chart-line-accent {
  background: #047857;
}

/* ── Badges & buttons ── */
.fdb-count-badge {
  background:#14b8a6; color:#fff;
  font-size:.6rem; font-weight:700; border-radius:4px; padding:2px 6px;
}
.fdb-viewall-btn {
  display:inline-flex; align-items:center; gap:2px;
  font-size:.7rem; font-weight:700; color:#fff;
  background:#1a5c38; border-radius:999px; padding:4px 12px;
  text-decoration:none; transition:background .18s;
}
.fdb-viewall-btn:hover { background:#1e7846; color:#fff; }
.fdb-viewall-btn i { font-size:.68rem; }

/* ═══════════════════════════════════════════════════════════
   NEWS & UPDATES — Unified Editorial Layout
   Left (60%): featured hero card
   Right (40%): 3 latest mini-cards
═══════════════════════════════════════════════════════════ */

/* Section wrapper */
.fdb-news-section {
  padding: 0 1rem 1.5rem;
}
.fdb-news-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.fdb-news-sub { font-size: .65rem; color: #6b7280; margin: 0; }

/* Editorial row */
.fdb-news-editorial {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
  align-items: stretch;
}

/* ── FEATURED ARTICLE ── */
.fdb-news-featured {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.fdb-news-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Hero image area */
.fdb-news-feat-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
}
.fdb-news-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.fdb-news-featured:hover .fdb-news-feat-img img { transform: scale(1.05); }

/* Dark gradient overlay at bottom of image */
.fdb-news-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 100%);
}

/* Featured badge (top right) */
.fdb-news-feat-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(20,184,166,0.92);
  color: #fff; font-size: .58rem; font-weight: 700;
  border-radius: 20px; padding: 2px 9px;
  backdrop-filter: blur(4px); letter-spacing: 0.04em;
}

/* Category tag (top left) */
.fdb-news-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(124,58,237,.88); color: #fff;
  font-size: .6rem; font-weight: 700; border-radius: 20px;
  padding: 2px 8px; backdrop-filter: blur(4px);
}

/* Body */
.fdb-news-feat-body {
  padding: .85rem 1rem .9rem;
  display: flex; flex-direction: column; flex: 1;
}
.fdb-news-feat-meta {
  display: flex; gap: .75rem; align-items: center;
  margin-bottom: .45rem;
}
.fdb-news-meta-date,
.fdb-news-meta-read {
  font-size: .62rem; color: #9ca3af;
  display: flex; align-items: center; gap: .2rem;
}
.fdb-news-meta-date i, .fdb-news-meta-read i { font-size: .78rem; }

.fdb-news-feat-title {
  font-size: .9rem; font-weight: 700;
  color: #111827; margin: 0 0 .4rem; line-height: 1.35;
}
.fdb-news-feat-excerpt {
  font-size: .72rem; color: #6b7280; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 0 .65rem; flex: 1;
}
.fdb-news-readmore {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 700; color: #047857;
  margin-top: auto;
}
.fdb-news-readmore i { font-size: .72rem; }

/* ── LATEST ARTICLES LIST ── */
.fdb-news-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.fdb-news-mini {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: .55rem;
  text-decoration: none;
  transition: all .2s ease;
  flex: 1;
}
.fdb-news-mini:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.fdb-news-mini-img {
  width: 64px; height: 64px;
  border-radius: 9px; overflow: hidden; flex-shrink: 0;
}
.fdb-news-mini-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.fdb-news-mini:hover .fdb-news-mini-img img { transform: scale(1.08); }

.fdb-news-mini-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .18rem;
}
.fdb-news-mini-cat {
  font-size: .55rem; font-weight: 700; color: #7c3aed;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.fdb-news-mini-title {
  font-size: .73rem; font-weight: 600; color: #111827;
  margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fdb-news-mini-meta {
  display: flex; gap: .5rem; align-items: center;
  font-size: .58rem; color: #9ca3af; margin-top: .1rem;
}
.fdb-news-mini-meta i { font-size: .72rem; }

.fdb-news-mini-arrow {
  font-size: .85rem; color: #d1d5db;
  flex-shrink: 0; margin-left: auto;
}
.fdb-news-mini:hover .fdb-news-mini-arrow { color: #047857; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .fdb-news-editorial { grid-template-columns: 1fr; }
  .fdb-news-list { flex-direction: row; flex-wrap: wrap; }
  .fdb-news-mini { flex: 1 1 calc(50% - .3rem); }
}
@media (max-width: 600px) {
  .fdb-news-mini { flex: 1 1 100%; }
}


/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Light (matches reference: white bg, dark icons+text)
═══════════════════════════════════════════════════════════ */
.bg-menu-theme {
  background: #ffffff !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.07) !important;
  border-right: 1px solid rgba(0,0,0,0.06) !important;
}
.bg-menu-theme .app-brand {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: .9rem 1.1rem !important;
}
.bg-menu-theme .app-brand-logo img { width:36px !important; height:36px !important; }
.bg-menu-theme .menu-link { color:#374151 !important; }
.bg-menu-theme .menu-link:hover { color:#111827 !important; background:rgba(4,120,87,.06) !important; }
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
  background: rgba(4,120,87,.10) !important;
  color: #047857 !important;
  border-left: 3px solid #047857 !important;
  box-shadow: none !important;
}
.bg-menu-theme .menu-item.active > .menu-link i { color: #047857 !important; }
.bg-menu-theme .menu-icon,
.bg-menu-theme .menu-link i { color: #6b7280 !important; }
.bg-menu-theme .menu-link:hover i { color: #047857 !important; }
.bg-menu-theme .menu-header { color:#9ca3af !important; background:transparent !important; }
.bg-menu-theme .app-brand-text,
.bg-menu-theme h5 {
  font-size:1rem !important; font-weight:800 !important;
  color:#047857 !important; background:none !important;
  -webkit-text-fill-color:#047857 !important;
  text-shadow:none !important; animation:none !important;
  letter-spacing:.5px !important;
}
.bg-menu-theme h5::before { display:none !important; }

/* Remove dark overrides left from old sidebar file in case they leak */
.bg-menu-theme .menu-sub .menu-link { color:#4b5563 !important; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .fdb-hero-wrap { height: 220px; }
  .fdb-hero-analytics-label { bottom: 76px; }
  .fdb-srow {
    bottom: -65px;
    left: 0.8rem;
    right: 0.8rem;
    gap: 6px;
  }
  .fdb-scard { padding: 10px 10px 8px; border-radius: 14px; }
  .fdb-sc-num  { font-size: 1.1rem; }
  .fdb-sc-chart { min-height: 72px; }
  .fdb-scard-side { display: none; }
  .fdb-content { padding-top: 76px; }
}
