@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

    :root {
      --font-sans: 'Hind Siliguri', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --border-radius-lg: 16px;
      --border-radius-md: 12px;
      --border-radius-sm: 8px;
      
      /* Light Theme Colors */
      --color-bg-primary: #f1f5f9;
      --color-bg-secondary: #ffffff;
      --color-bg-sidebar: #0f3e32;
      --color-bg-active: #e2e8f0;
      
      --color-primary: #0f6e56;
      --color-primary-dark: #085041;
      --color-primary-light: #1d9e75;
      --color-accent: #ef9f27;
      --color-accent-dark: #ba7517;
      --color-accent-light: #fbeed6;
      
      --color-text-primary: #0f172a;
      --color-text-secondary: #475569;
      --color-text-tertiary: #64748b;
      --color-text-on-dark: #ffffff;
      
      --color-border: #cbd5e1;
      --color-border-light: #e2e8f0;
      
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
      --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
      --shadow-lg: 0 10px 25px -5px rgba(15, 110, 86, 0.1), 0 8px 10px -6px rgba(15, 110, 86, 0.05);
      
      --pos-color: #0d9488;
      --neg-color: #e11d48;
      --pos-bg: #ccfbf1;
      --neg-bg: #ffe4e6;
    }

    [data-theme="dark"] {
      /* Dark Theme Colors */
      --color-bg-primary: #090d16;
      --color-bg-secondary: #111827;
      --color-bg-sidebar: #051612;
      --color-bg-active: #1f2937;
      
      --color-primary: #10b981;
      --color-primary-dark: #047857;
      --color-primary-light: #34d399;
      --color-accent: #f59e0b;
      --color-accent-dark: #d97706;
      --color-accent-light: #452a05;
      
      --color-text-primary: #f3f4f6;
      --color-text-secondary: #9ca3af;
      --color-text-tertiary: #6b7280;
      
      --color-border: #374151;
      --color-border-light: #1f2937;
      
      --pos-color: #34d399;
      --neg-color: #fb7185;
      --pos-bg: #064e3b;
      --neg-bg: #4c0519;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      transition: background-color 0.25s ease, border-color 0.25s ease;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--color-bg-primary);
      background-image: radial-gradient(circle at 100% 0%, rgba(15, 110, 86, 0.08) 0%, transparent 25%), 
                        radial-gradient(circle at 0% 100%, rgba(239, 159, 39, 0.05) 0%, transparent 25%);
      background-attachment: fixed;
      color: var(--color-text-primary);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Layout structure */
    .app-container {
      display: grid;
      grid-template-columns: 340px 1fr;
      min-height: 100vh;
      transition: grid-template-columns 0.3s ease;
    }

    .app-container.sidebar-collapsed {
      grid-template-columns: 0px 1fr;
    }

    /* Sidebar controls */
    .sidebar {
      background: rgba(15, 62, 50, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--color-text-on-dark);
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      border-right: 1px solid rgba(255,255,255,0.05);
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
      width: 340px;
      transition: all 0.3s ease;
      z-index: 100;
    }

    .app-container.sidebar-collapsed .sidebar {
      transform: translateX(-340px);
      padding-left: 0;
      padding-right: 0;
      opacity: 0;
      visibility: hidden;
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      fill: var(--color-primary-light);
    }

    .logo-text h1 {
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: #fff;
    }

    .logo-text p {
      font-size: 0.7rem;
      color: var(--color-primary-light);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .sidebar-section-title {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: rgba(255,255,255,0.4);
      margin-bottom: 0.5rem;
      font-weight: 700;
    }

    .control-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .control-item {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      background: rgba(255,255,255,0.04);
      padding: 0.8rem 1rem;
      border-radius: var(--border-radius-md);
      border: 1px solid rgba(255,255,255,0.03);
    }

    .control-label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.8);
      font-weight: 500;
    }

    .control-value {
      font-weight: 600;
      color: var(--color-accent);
      font-family: 'Outfit', sans-serif;
    }

    /* Custom input range styling */
    input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.15);
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--color-accent);
      cursor: pointer;
      border: 2px solid #fff;
      box-shadow: var(--shadow-sm);
      transition: transform 0.1s ease;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }

    .radio-pill-group {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      margin-top: 4px;
      background: rgba(0,0,0,0.15);
      padding: 3px;
      border-radius: 20px;
    }

    .radio-pill-item {
      position: relative;
    }

    .radio-pill-item input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .radio-pill-label {
      display: block;
      text-align: center;
      font-size: 0.75rem;
      padding: 6px 4px;
      border-radius: 17px;
      cursor: pointer;
      color: rgba(255,255,255,0.7);
      background: transparent;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    .radio-pill-item input[type="radio"]:checked + .radio-pill-label {
      background: var(--color-primary-light);
      color: #fff;
      box-shadow: var(--shadow-sm);
      font-weight: 600;
    }

    .reset-btn {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      padding: 0.6rem;
      border-radius: var(--border-radius-sm);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 500;
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s ease;
    }

    .reset-btn:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.4);
    }

    /* Main Content Area */
    .main-content {
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow-y: auto;
    }

    /* Top Navigation bar */
    .top-navbar {
      background-color: var(--color-bg-secondary);
      border-bottom: 1px solid var(--color-border-light);
      padding: 0.75rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 90;
      box-shadow: var(--shadow-sm);
    }

    .tabs-nav {
      display: flex;
      gap: 8px;
    }

    .tab-btn {
      background: transparent;
      border: none;
      color: var(--color-text-secondary);
      padding: 0.6rem 1rem;
      border-radius: var(--border-radius-sm);
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .tab-btn:hover {
      background-color: var(--color-bg-primary);
      color: var(--color-text-primary);
    }

    .tab-btn.active {
      background-color: var(--color-primary);
      color: #fff;
      box-shadow: var(--shadow-sm);
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .theme-toggle {
      background: var(--color-bg-primary);
      border: 1px solid var(--color-border);
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--color-text-secondary);
      transition: all 0.2s ease;
    }

    .theme-toggle:hover {
      background: var(--color-border-light);
      color: var(--color-text-primary);
      transform: scale(1.05);
    }

    /* Scrollable Tab Content Container */
    .content-container {
      padding: 2rem;
      flex-grow: 1;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
    }

    .tab-content {
      display: none;
      animation: fadeIn 0.3s ease;
    }

    .tab-content.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Cover / Header section in Tab 1 */
    .dashboard-header {
      background: linear-gradient(135deg, #094738 0%, #166e56 50%, #209974 100%);
      border-radius: var(--border-radius-lg);
      padding: 2rem;
      color: #fff;
      position: relative;
      overflow: hidden;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-lg);
    }

    .dashboard-header::before {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
      pointer-events: none;
    }

    .dashboard-header-badge {
      display: inline-block;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(4px);
      color: #9fe1cb;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 12px;
    }

    .dashboard-header-title {
      font-size: 2rem;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 8px;
    }

    .dashboard-header-subtitle {
      font-size: 0.95rem;
      color: rgba(255,255,255,0.8);
      max-width: 600px;
    }

    /* KPI Cards Grid */
    .kpis-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .kpi-card {
      background-color: var(--color-bg-secondary);
      border-radius: var(--border-radius-md);
      padding: 1.25rem 1rem;
      border: 1px solid var(--color-border-light);
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .kpi-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }

    .kpi-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background-color: var(--color-primary);
    }

    .kpi-card.accent::before {
      background-color: var(--color-accent);
    }

    .kpi-label {
      font-size: 0.8rem;
      color: var(--color-text-secondary);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .kpi-value {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--color-text-primary);
      line-height: 1.1;
      margin-bottom: 0.25rem;
    }

    .kpi-subtext {
      font-size: 0.75rem;
      color: var(--color-text-tertiary);
    }

    /* Cards block */
    .cards-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }

    .card {
      background-color: var(--color-bg-secondary);
      border-radius: var(--border-radius-md);
      padding: 1.5rem;
      border: 1px solid var(--color-border-light);
      box-shadow: var(--shadow-sm);
    }

    .card-header-with-badge {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .card-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--color-text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sec-hd {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--color-primary-light);
    }

    .sec-num {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--color-primary-dark);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sec-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--color-text-primary);
    }

    /* Grid layout 2 columns (for charts/details) */
    .two-column-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .asymmetric-grid {
      display: grid;
      grid-template-columns: 46% 1fr;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    /* Tables styling */
    .table-container {
      overflow-x: auto;
      border-radius: var(--border-radius-md);
      border: 1px solid var(--color-border-light);
      box-shadow: var(--shadow-sm);
      margin-bottom: 1rem;
      background: var(--color-bg-secondary);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.88rem;
      text-align: left;
    }

    thead th {
      background-color: var(--color-primary-dark);
      color: #fff;
      padding: 10px 14px;
      font-weight: 600;
      font-size: 0.85rem;
      letter-spacing: 0.5px;
    }

    thead th.text-right {
      text-align: right;
    }

    tbody td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--color-border-light);
      color: var(--color-text-primary);
      vertical-align: middle;
    }

    tbody td.text-right {
      text-align: right;
      font-family: 'Outfit', sans-serif;
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    tbody tr:nth-child(even) td {
      background-color: rgba(0,0,0,0.015);
    }

    [data-theme="dark"] tbody tr:nth-child(even) td {
      background-color: rgba(255,255,255,0.015);
    }

    tbody tr.group-header td {
      background-color: var(--color-primary-light);
      color: #fff;
      font-weight: 700;
      font-size: 0.85rem;
      padding: 8px 14px;
    }

    tbody tr.subtotal-row td {
      background-color: rgba(15, 110, 86, 0.05);
      font-weight: 600;
    }

    tbody tr.grand-total-row td {
      background-color: var(--pos-bg);
      font-weight: 700;
      color: var(--pos-color);
      border-top: 2px solid var(--color-primary);
    }

    tbody tr.grand-total-row.neg td {
      background-color: var(--neg-bg);
      color: var(--neg-color);
      border-top: 2px solid var(--neg-color);
    }

    .pos-val {
      color: var(--pos-color);
      font-weight: 600;
    }

    .neg-val {
      color: var(--neg-color);
      font-weight: 600;
    }

    /* Badges styles */
    .status-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-align: center;
    }

    .status-badge.primary { background-color: var(--pos-bg); color: var(--pos-color); }
    .status-badge.accent { background-color: var(--color-accent-light); color: var(--color-accent-dark); }
    .status-badge.neutral { background-color: var(--color-bg-primary); color: var(--color-text-secondary); }
    .status-badge.danger { background-color: var(--neg-bg); color: var(--neg-color); }

    /* Callout Card */
    .callout-box {
      border-left: 4px solid var(--color-primary);
      background-color: var(--color-bg-secondary);
      padding: 1.25rem;
      border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
      margin-bottom: 1.5rem;
      box-shadow: var(--shadow-sm);
    }

    .callout-box.accent {
      border-left-color: var(--color-accent);
    }

    .callout-box.danger {
      border-left-color: var(--neg-color);
    }

    .callout-header {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-primary-dark);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .callout-box.accent .callout-header { color: var(--color-accent-dark); }
    .callout-box.danger .callout-header { color: var(--neg-color); }

    .callout-body {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      line-height: 1.6;
    }

    /* Interactive diagram box */
    .interactive-diagram-container {
      background-color: var(--color-bg-secondary);
      border: 1px solid var(--color-border-light);
      border-radius: var(--border-radius-md);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-sm);
    }

    .interactive-svg {
      width: 100%;
      max-width: 320px;
      height: auto;
    }

    .svg-interactive-node {
      cursor: pointer;
      transition: transform 0.2s ease, filter 0.2s ease;
    }

    .svg-interactive-node:hover {
      transform: scale(1.05);
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    }

    .diagram-info-panel {
      background: var(--color-bg-primary);
      border-radius: var(--border-radius-md);
      padding: 1rem 1.25rem;
      margin-top: 1rem;
      width: 100%;
      border: 1px solid var(--color-border);
    }

    .info-panel-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 0.4rem;
    }

    .info-panel-desc {
      font-size: 0.8rem;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }

    /* Progress bars */
    .progress-bar-group {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .progress-bar-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .progress-bar-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--color-text-secondary);
    }

    .progress-bar-label-name {
      color: var(--color-text-primary);
      font-weight: 600;
    }

    .progress-bar-track {
      height: 10px;
      background: var(--color-bg-primary);
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid var(--color-border-light);
    }

    .progress-bar-fill {
      height: 100%;
      border-radius: 5px;
      transition: width 0.5s ease-out;
    }

    /* Chart wrap */
    .chart-container-box {
      background: var(--color-bg-secondary);
      border-radius: var(--border-radius-md);
      border: 1px solid var(--color-border-light);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
      margin-bottom: 1.5rem;
    }

    .chart-wrapper {
      position: relative;
      width: 100%;
      height: 300px;
    }

    /* Risks items */
    .risk-cards-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .risk-card {
      background: var(--color-bg-secondary);
      border: 1px solid var(--color-border-light);
      border-radius: var(--border-radius-md);
      padding: 1rem 1.25rem;
      display: flex;
      gap: 15px;
      align-items: flex-start;
      box-shadow: var(--shadow-sm);
      transition: transform 0.15s ease;
    }

    .risk-card:hover {
      transform: translateX(4px);
    }

    .risk-indicator-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-top: 5px;
      flex-shrink: 0;
    }

    .risk-indicator-dot.high { background-color: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
    .risk-indicator-dot.medium { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
    .risk-indicator-dot.low { background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

    .risk-info-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .risk-card-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-text-primary);
    }

    .risk-card-desc {
      font-size: 0.82rem;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }

    /* 12 Tips & Rules Grid */
    .tips-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .tip-box-item {
      background: var(--color-bg-secondary);
      border: 1px solid var(--color-border-light);
      border-radius: var(--border-radius-md);
      padding: 1rem;
      display: flex;
      gap: 10px;
      box-shadow: var(--shadow-sm);
    }

    .tip-badge-num {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--color-accent-light);
      color: var(--color-accent-dark);
      font-size: 0.8rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .tip-box-text {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }

    /* Timelines implementation */
    .timeline-timeline {
      display: flex;
      flex-direction: column;
      gap: 0px;
      margin-top: 1rem;
      background: var(--color-bg-secondary);
      border-radius: var(--border-radius-md);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
    }

    .timeline-step {
      display: flex;
      gap: 20px;
      position: relative;
    }

    .timeline-step::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 24px;
      bottom: -10px;
      width: 2px;
      background-color: var(--color-border-light);
    }

    .timeline-step:last-child::before {
      display: none;
    }

    .timeline-circle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background-color: var(--color-bg-secondary);
      border: 3px solid var(--color-primary);
      z-index: 10;
      flex-shrink: 0;
    }

    .timeline-step.active .timeline-circle {
      background-color: var(--color-primary-light);
    }

    .timeline-body {
      padding-bottom: 1.5rem;
    }

    .timeline-step-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-text-primary);
      margin-bottom: 4px;
    }

    .timeline-step-desc {
      font-size: 0.82rem;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }

    /* Government help cards */
    .govt-contacts-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .govt-contact-card {
      background: var(--color-bg-secondary);
      border: 1px solid var(--color-border-light);
      border-radius: var(--border-radius-md);
      padding: 1.25rem 1rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 8px;
    }

    .govt-card-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--pos-bg);
      color: var(--pos-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      margin-bottom: 4px;
    }

    .govt-card-name {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--color-text-primary);
    }

    .govt-card-desc {
      font-size: 0.78rem;
      color: var(--color-text-secondary);
      line-height: 1.4;
      flex-grow: 1;
    }

    .govt-card-action {
      background: var(--color-bg-primary);
      border: 1px solid var(--color-border);
      color: var(--color-primary);
      font-size: 0.78rem;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 15px;
      text-decoration: none;
      margin-top: 8px;
      transition: all 0.2s ease;
      display: block;
      width: 100%;
    }

    .govt-card-action:hover {
      background: var(--color-primary);
      color: #fff;
      border-color: var(--color-primary);
    }

    /* Custom Activity Calendar Style */
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 1.5rem;
    }

    .calendar-card {
      background: var(--color-bg-secondary);
      border: 1px solid var(--color-border-light);
      border-radius: var(--border-radius-md);
      padding: 1rem;
      box-shadow: var(--shadow-sm);
    }

    .calendar-month-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--color-primary-dark);
      border-bottom: 2px solid var(--color-primary-light);
      padding-bottom: 4px;
      margin-bottom: 8px;
    }

    .calendar-crop-task {
      font-size: 0.78rem;
      margin-bottom: 5px;
      line-height: 1.4;
      display: flex;
      align-items: flex-start;
      gap: 4px;
    }

    .calendar-crop-task:last-child {
      margin-bottom: 0;
    }

    .crop-tag {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 4px;
      border-radius: 4px;
      flex-shrink: 0;
      text-transform: uppercase;
    }
    .crop-tag.areca { background: #e1f5ee; color: #0f6e56; }
    .crop-tag.lotkon { background: #fbeed6; color: #ba7517; }
    .crop-tag.turmeric { background: #fef3c7; color: #d97706; }

    /* Final assessment box */
    .summary-conclusion-box {
      background: linear-gradient(135deg, #052e25 0%, #0c4a3b 100%);
      color: #fff;
      border-radius: var(--border-radius-lg);
      padding: 2.5rem;
      margin-top: 2rem;
      box-shadow: var(--shadow-lg);
    }

    .summary-conclusion-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: #9fe1cb;
      margin-bottom: 1.5rem;
    }

    .summary-conclusion-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1.5rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid rgba(255,255,255,0.15);
      padding-bottom: 1.5rem;
    }

    .summary-conclusion-item-title {
      font-size: 0.9rem;
      color: #9fe1cb;
      margin-bottom: 6px;
      font-weight: 500;
    }

    .summary-conclusion-item-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
    }

    .summary-conclusion-item-sub {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.6);
      margin-top: 4px;
    }

    .summary-conclusion-note {
      font-size: 0.9rem;
      line-height: 1.6;
      color: rgba(255,255,255,0.75);
    }

    /* Medium screens (Laptops / Small Desktops) */
    @media (max-width: 1380px) {
      .top-navbar {
        padding: 0.75rem 0.5rem;
      }
      .tabs-nav {
        gap: 4px;
      }
      .tab-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.78rem;
        gap: 4px;
      }
      .top-actions {
        gap: 6px;
      }
      .top-actions .tab-btn {
        padding: 0.5rem 0.5rem !important;
        margin-right: 0 !important;
        border-radius: var(--border-radius-sm) !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
      }
      .top-actions .tab-btn .btn-text {
        display: inline !important; /* Keep text visible */
      }
    }

    /* Mobile Responsive styles */
    @media (max-width: 1024px) {
      .app-container {
        grid-template-columns: 1fr;
      }
      .sidebar {
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
      }
      .main-content {
        height: auto;
      }
      .kpis-grid {
        grid-template-columns: repeat(3, 1fr);
      }
      .govt-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .top-navbar {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
      }
      .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
      }
      .kpis-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .cards-grid-3 {
        grid-template-columns: 1fr;
      }
      .two-column-grid, .asymmetric-grid {
        grid-template-columns: 1fr;
      }
      .govt-contacts-grid {
        grid-template-columns: 1fr;
      }
      .calendar-grid {
        grid-template-columns: 1fr;
      }
      .tips-grid-2 {
        grid-template-columns: 1fr;
      }
      .summary-conclusion-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* Print Styles */
    @media print {
      body {
        background: white !important;
        color: black !important;
        font-size: 12px;
      }
      .sidebar, .top-actions, .tabs-nav {
        display: none !important;
      }
      .app-container {
        display: block !important;
        grid-template-columns: none !important;
      }
      .main-content {
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        padding: 0 !important;
      }
      .tab-content {
        display: block !important;
        page-break-after: always;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
      }
      .card, .kpi-card, .table-container, .chart-container-box, .callout-box, .interactive-diagram-container, .summary-conclusion-box {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
        margin-bottom: 20px !important;
      }
      h1, h2, h3, h4, h5, .card-title, .sec-title, .kpi-value, .kpi-label, .kpi-subtext, .info-panel-title, .info-p {
        color: black !important;
      }
      canvas {
        max-width: 100% !important;
      }
      table, th, td {
        border: 1px solid #ddd !important;
      }
      .status-badge {
        border: 1px solid #666;
        color: black !important;
        background: transparent !important;
      }
      }
    }

    /* ==========================================
       LAUNCH UPGRADES & INTERACTIVITY STYLES
       ========================================== */

    /* Accordion styles in sidebar */
    details.sidebar-accordion {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--border-radius-md);
      margin-bottom: 0.75rem;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    details.sidebar-accordion[open] {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.15);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    details.sidebar-accordion summary {
      padding: 0.8rem 1rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: #fff;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
      background: rgba(255, 255, 255, 0.02);
      transition: background 0.2s ease;
    }
    details.sidebar-accordion summary:hover {
      background: rgba(255, 255, 255, 0.05);
    }
    details.sidebar-accordion summary::after {
      content: '▼';
      font-size: 0.65rem;
      color: var(--color-primary-light);
      transition: transform 0.3s ease;
    }
    details.sidebar-accordion[open] summary::after {
      transform: rotate(-180deg);
    }
    details.sidebar-accordion summary::-webkit-details-marker {
      display: none;
    }
    .accordion-body {
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(0,0,0,0.1);
    }

    /* Toast Notifications styles */
    .toast-container {
      position: fixed;
      bottom: 24px;
      left: 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 9999;
    }
    .toast {
      background: var(--color-bg-secondary);
      color: var(--color-text-primary);
      padding: 12px 20px;
      border-radius: var(--border-radius-md);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.85rem;
      font-weight: 500;
      border-left: 4px solid var(--color-primary);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }
    .toast.success {
      border-left-color: #10b981;
    }
    .toast.info {
      border-left-color: #3b82f6;
    }

    /* Onboarding Tour styles */
    .tour-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.4);
      z-index: 9990;
      pointer-events: none;
      transition: opacity 0.3s ease;
      opacity: 0;
    }
    .tour-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }
    .tour-tooltip {
      position: absolute;
      background: #ffffff;
      color: #0f172a;
      padding: 16px 20px;
      border-radius: var(--border-radius-lg);
      box-shadow: 0 20px 40px rgba(0,0,0,0.25);
      z-index: 9995;
      max-width: 300px;
      font-family: var(--font-sans);
      opacity: 0;
      transform: scale(0.9);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      pointer-events: none;
      border: 1px solid rgba(0,0,0,0.05);
    }
    .tour-tooltip.show {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    .tour-tooltip h4 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--color-primary-dark);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .tour-tooltip p {
      font-size: 0.8rem;
      line-height: 1.4;
      color: #475569;
      margin-bottom: 12px;
    }
    .tour-buttons {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }
    .tour-btn {
      padding: 6px 12px;
      font-size: 0.75rem;
      font-weight: 600;
      border-radius: var(--border-radius-sm);
      cursor: pointer;
      border: none;
      outline: none;
    }
    .tour-btn.next {
      background: var(--color-primary);
      color: #ffffff;
    }
    .tour-btn.next:hover {
      background: var(--color-primary-dark);
    }
    .tour-btn.skip {
      background: transparent;
      color: #64748b;
    }
    .tour-btn.skip:hover {
      color: #334155;
    }
    .tour-step-dot {
      font-size: 0.72rem;
      color: #94a3b8;
    }
    .tour-highlight {
      position: relative;
      z-index: 9992 !important;
      outline: 3px solid #fbbf24 !important;
      outline-offset: 4px;
      box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), 0 0 0 10px rgba(251, 191, 36, 0.25) !important;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.12) !important;
      border-radius: 4px;
    }

    /* Comparison grid layout styles */
    .comparison-grid {
      margin-top: 0.5rem;
    }
    @media (max-width: 600px) {
      .comparison-grid {
        grid-template-columns: 1fr !important;
      }
    }

    /* Dynamic SVG tooltips & animations */
    .svg-interactive-node {
      transition: transform 0.2s ease, opacity 0.2s ease;
      cursor: pointer;
    }
    .svg-interactive-node:hover {
      transform: scale(1.08);
      transform-origin: center;
    }
    
    /* Smooth transitions for tab loading */
    .tab-content {
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.4s ease, transform 0.4s ease;
      display: none;
    }
    .tab-content.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    /* Custom tooltip element for SVG nodes */
    .svg-tooltip {
      position: absolute;
      background: #111827;
      color: #f3f4f6;
      padding: 8px 12px;
      border-radius: var(--border-radius-sm);
      font-size: 0.75rem;
      pointer-events: none;
      z-index: 1000;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.1);
      opacity: 0;
      transition: opacity 0.2s ease;
      max-width: 200px;
    }
    .svg-tooltip.show {
      opacity: 1;
    }

    /* Intercrop name label styling inside SVG */
    .intercrop-label-text {
      fill: #b45309;
      pointer-events: none;
      user-select: none;
      transition: fill 0.25s ease;
    }
    [data-theme="dark"] .intercrop-label-text {
      fill: #fbbf24;
    }