   :root {
        /* Color Palette */
        --primary: #2563eb; /* blue-600 */
        --primary-hover: #1d4ed8; /* blue-700 */
        --primary-light: #eff6ff; /* blue-50 */
        --primary-text: #1e40af; /* blue-800 */

        --bg-body-start: #f3f8ff;
        --bg-body-end: #e1e9f8;

        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-300: #d1d5db;
        --gray-500: #6b7280;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --gray-900: #111827;
        --white: #ffffff;

        /* Status Colors */
        --green-100: #dcfce7;
        --green-500: #22c55e;
        --green-600: #16a34a; /* Text confirmation */
        --green-800: #166534;

        --yellow-100: #fef9c3;
        --yellow-400: #facc15;
        --yellow-800: #854d0e;

        --red-100: #fee2e2;
        --red-500: #ef4444;
        --red-800: #991b1b;

        --purple-100: #f3e8ff;
        --purple-800: #6b21a8;

        /* Spacing & Layout */
        --container-width: 1024px;
        --top-bar-height: 50px;
        --header-height: 80px;
      }

      /* --- Global Resets & Typography --- */
      * {
        box-sizing: border-box;
      }

      body {
        font-family: "Inter", sans-serif;
        background: linear-gradient(
          170deg,
          var(--bg-body-start) 0%,
          var(--bg-body-end) 100%
        );
        color: var(--gray-800);
        margin: 0;
        padding: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      /* --- Utilities --- */
      .hidden {
        display: none !important;
      }

      /* Alignment Utilities */
      .text-center {
        text-align: center !important;
      }
      .text-left {
        text-align: left !important;
      }
      .text-right {
        text-align: right !important;
      }

      .text-blue {
        color: var(--primary);
      }
      .font-bold {
        font-weight: 700;
      }
      .font-semibold {
        font-weight: 600;
      }

      /* --- Layout Components --- */
      .container {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 1rem;
      }

      .main-wrapper {
        /* 6rem is original padding, adding top bar height to it */
        padding-top: calc(6rem + var(--top-bar-height));
      }

      /* --- Top Navigation Bar (New) --- */
      .top-nav-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--top-bar-height);
        background-color: var(--gray-900);
        z-index: 60; /* Higher than app-header */
        display: flex;
        align-items: center;
        /* Allow scrolling on small screens */
        overflow-x: auto;
        /* Hide scrollbar */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
      }
      .top-nav-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
      }

      .top-nav-content {
        display: flex;
        gap: 1rem;
        padding: 0 1rem;
        white-space: nowrap;
        /* To center align items when they fit, but allow left align when scrolling */
        margin: 0 auto;
        min-width: min-content; /* Ensures children define width */
        align-items: center;
      }

      /* Fallback for centering if content is smaller than screen */
      @media (min-width: 1024px) {
        .top-nav-bar {
          justify-content: center;
        }
      }

      .nav-link-item {
        color: var(--gray-200);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.4rem 0.8rem;
        border-radius: 9999px;
        background-color: rgba(255, 255, 255, 0.1);
        transition: all 0.2s;
        display: inline-block;
      }
      .nav-link-item:hover {
        background-color: var(--primary);
        color: var(--white);
      }

      /* --- Multi-color Button Animation --- */
      @keyframes rainbow-flow {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }

      .nav-btn-multi {
        /* Linear Gradient for multi-color effect */
        background: linear-gradient(
          270deg,
          #ff0055,
          #ff9900,
          #33cc33,
          #0099ff,
          #9933ff
        );
        background-size: 300% 300%;
        animation: rainbow-flow 6s ease infinite;
        color: white !important;
        font-weight: 800;
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
      }
      .nav-btn-multi:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
      }

      /* --- Header --- */
      .app-header {
        position: fixed;
        /* Push down by the height of the top bar */
        top: var(--top-bar-height);
        left: 0;
        right: 0;
        z-index: 50;
        background-color: var(--white);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      }

      .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        max-width: var(--container-width);
        margin: 0 auto;
      }

      .logo {
        height: 2.5rem;
      }
      @media (min-width: 640px) {
        .logo {
          height: 3rem;
        }
      }

      .btn-home {
        background-color: var(--primary);
        color: var(--white);
        font-weight: 600;
        padding: 0.5rem 1.5rem;
        border-radius: 0.5rem;
        text-decoration: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        display: inline-block;
      }
      .btn-home:hover {
        background-color: var(--primary-hover);
        transform: scale(1.05);
      }

      /* --- Cards --- */
      .card {
        background-color: var(--white);
        padding: 2rem;
        border-radius: 1rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
          0 4px 6px -2px rgba(0, 0, 0, 0.05);
      }

      .hero-card {
        background-color: var(--primary);
        color: var(--white);
        text-align: center;
      }

      .hero-title {
        font-size: 1.875rem;
        font-weight: 800;
        line-height: 2.25rem;
        margin: 0;
        letter-spacing: -0.025em;
      }
      @media (min-width: 640px) {
        .hero-title {
          font-size: 2.25rem;
          line-height: 2.5rem;
        }
      }
      .hero-subtitle {
        margin-top: 0.5rem;
        font-size: 1.125rem;
        color: #dbeafe; /* blue-100 */
      }

      .section-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 0.75rem;
        margin-top: 0;
        display: flex;
        align-items: center;
      }

      .text-content {
        color: var(--gray-600);
        line-height: 1.625;
      }

      /* --- Form --- */
      .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem 1.5rem;
        align-items: start;
      }
      @media (min-width: 768px) {
        .form-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (min-width: 1024px) {
        .form-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }

      .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-700);
        margin-bottom: 0.25rem;
      }

      .form-control {
        width: 100%;
        padding: 0.5rem 1rem;
        border: 1px solid var(--gray-300);
        border-radius: 0.5rem;
        background-color: var(--white);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
      }
      .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
      }

      /* Custom Dropdown / Checkboxes */
      .dropdown-relative {
        position: relative;
      }
      .dropdown-btn {
        text-align: left;
        cursor: pointer;
        background-color: var(--white);
      }
      .dropdown-btn span {
        color: var(--gray-500);
      }
      .dropdown-btn span.has-selection {
        color: var(--gray-800);
      }
      .dropdown-menu {
        position: absolute;
        z-index: 20;
        width: 100%;
        margin-top: 0.25rem;
        background-color: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      }
      .dropdown-header {
        /* Adjusted horizontal padding (0.25rem) to match .dropdown-body so text aligns perfectly */
        padding: 0.5rem 0.25rem;
        border-bottom: 1px solid var(--gray-200);
      }
      .dropdown-body {
        padding: 0.25rem;
        max-height: 12rem;
        overflow-y: auto;
      }
      /* Custom scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }
      ::-webkit-scrollbar-track {
        background: #dbeafe;
      }
      ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-hover);
      }

      .checkbox-item {
        display: flex;
        align-items: center;
        padding: 0.5rem;
        border-radius: 0.375rem;
        cursor: pointer;
      }
      .checkbox-item:hover {
        background-color: var(--gray-50);
      }
      .checkbox-input {
        height: 1rem;
        width: 1rem;
        border-radius: 0.25rem;
        border: 1px solid var(--gray-300);
        color: var(--primary);
        margin-right: 0.75rem; /* Provides spacing between input and label */
      }
      .checkbox-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-700);
        cursor: pointer;
      }

      /* Disabled Item Styles */
      .checkbox-item.disabled-item {
        opacity: 0.6;
        background-color: var(--gray-50);
        cursor: not-allowed;
      }
      .checkbox-item.disabled-item:hover {
        background-color: var(--gray-50); /* No hover effect */
      }
      .checkbox-item.disabled-item .checkbox-label {
        color: var(--gray-400);
        cursor: not-allowed;
      }
      .checkbox-item.disabled-item .checkbox-input {
        cursor: not-allowed;
        border-color: var(--gray-200);
        background-color: var(--gray-100);
      }

      /* Buttons */
      .btn-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: space-evenly;
        align-items: center;
        padding-top: 1.75rem;
      }
      @media (min-width: 640px) {
        .btn-group {
          flex-direction: row;
        }
      }

      .btn {
        width: 100%;
        padding: 0.5rem 2.5rem;
        font-weight: 600;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        border: none;
        transition: all 0.3s;
        font-size: 1rem;
      }
      @media (min-width: 640px) {
        .btn {
          width: auto;
        }
      }

      .btn-primary {
        background-color: var(--primary);
        color: var(--white);
      }
      .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: scale(1.05);
      }

      .btn-secondary {
        background-color: var(--gray-200);
        color: var(--gray-700);
      }
      .btn-secondary:hover {
        background-color: var(--gray-300);
      }

      /* --- Secondary Filters --- */
      details > summary {
        list-style: none;
      }
      details > summary::-webkit-details-marker {
        display: none;
      }
      .summary-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
      }
      .arrow-icon {
        width: 1.5rem;
        height: 1.5rem;
        transition: transform 0.3s;
      }
      details[open] summary .arrow-icon {
        transform: rotate(180deg);
      }

      .filter-nav {
        display: flex;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 1rem;
        overflow-x: auto;
      }
      .filter-tab {
        padding: 1rem 0.25rem;
        margin-right: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--gray-500);
        cursor: pointer;
      }
      .filter-tab:hover {
        color: var(--gray-700);
        border-color: var(--gray-300);
      }
      .filter-tab.active {
        color: var(--primary);
        border-color: var(--primary);
      }

      .filter-actions {
        margin-top: 1.5rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
      }
      .btn-sm {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
      }
      .search-input {
        width: 100%;
        padding: 0.5rem 1rem;
        border: 1px solid var(--gray-300);
        border-radius: 0.5rem;
      }
      @media (min-width: 768px) {
        .search-input {
          width: 33%;
        }
      }
      .clear-link {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
      }
      .clear-link:hover {
        color: var(--primary-text);
      }

      /* Filter Grids */
      .filter-grid-2-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }
      @media (min-width: 768px) {
        .filter-grid-2-4 {
          grid-template-columns: repeat(4, 1fr);
        }
      }
      .filter-grid-2-3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }
      @media (min-width: 768px) {
        .filter-grid-2-3 {
          grid-template-columns: repeat(3, 1fr);
        }
      }

      /* --- Results Table --- */
      .results-header-flex {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 1.5rem;
      }
      @media (min-width: 640px) {
        .results-header-flex {
          flex-direction: row;
          align-items: center;
        }
      }
      .results-summary-text {
        font-weight: 600;
        color: var(--primary);
      }

      .table-container {
        overflow-x: auto;
      }
      table {
        min-width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
      }
      th {
        background-color: var(--gray-50);
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--gray-500);
        border-bottom: 1px solid var(--gray-200);
      }
      /* Applied to table headers */
      th.text-center {
        text-align: center;
      }

      td {
        padding: 1rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--gray-200);
        font-size: 0.875rem;
        color: var(--gray-600);
      }
      tr:hover {
        background-color: var(--gray-50);
      }

      /* Table Badges & Status */
      .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
        line-height: 1.25rem;
        font-weight: 600;
        border-radius: 9999px;
        white-space: nowrap;
      }

      /* Dynamic Status Classes */
      .status-high {
        background-color: var(--green-100);
        color: var(--green-800);
      }
      .status-good {
        background-color: var(--yellow-100);
        color: var(--yellow-800);
      }
      .status-low {
        background-color: var(--red-100);
        color: var(--red-800);
      }

      .sn-high {
        background-color: var(--green-500);
        color: var(--white);
      }
      .sn-good {
        background-color: var(--yellow-400);
        color: var(--white);
      }
      .sn-low {
        background-color: var(--red-500);
        color: var(--white);
      }

      /* Improved Aesthetic for Phase Badges */
      .phase-badge {
        background-color: var(--primary-light);
        color: var(--primary);
        border: 1px solid #dbeafe;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      }
      .phase-stray {
        background-color: #fdf4ff; /* Lighter Purple */
        color: #7e22ce; /* Darker Purple text */
        border: 1px solid #fae8ff; /* Purple border */
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      }

      .category-highlight {
        background-color: var(--primary-light);
        font-weight: 600;
      }

      .institute-name {
        color: var(--gray-900);
        font-weight: 500;
        word-wrap: break-word;
      }

      /* Icons */
      .icon {
        width: 1.5rem;
        height: 1.5rem;
        color: var(--primary);
      }
      .icon-sm {
        width: 1.25rem;
        height: 1.25rem;
      }
      .flex-center-title {
        display: flex;
        align-items: center;
      }
      .mr-2 {
        margin-right: 0.5rem;
      }

      /* Loader */
      .loader-container {
        display: flex;
        justify-content: center;
        margin: 2rem 0;
      }
      .loader {
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-top: 4px solid #ffffff; /* Fallback */
        border-top: 4px solid var(--primary); /* Actually want blue loader on white bg */
        border-right: 4px solid var(--gray-200);
        border-bottom: 4px solid var(--gray-200);
        border-left: 4px solid var(--gray-200);

        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
      }
      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      /* FAQs */
      .faq-item {
        border-bottom: 1px solid var(--gray-200);
      }
      .faq-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 1rem;
        border-radius: 0.5rem;
        background-color: var(--gray-50);
        transition: background-color 0.2s;
      }
      .faq-summary:hover {
        background-color: var(--gray-100);
      }
      .faq-content {
        padding: 1rem;
        color: var(--gray-600);
        border-top: 1px solid var(--gray-200);
      }

      /* Helper Text */
      .text-green-msg {
        color: var(--green-600);
        font-size: 0.875rem;
        font-weight: 600;
      }

      .no-results {
        text-align: center;
        padding: 2rem 0;
        color: var(--gray-500);
      }

      /* Bottom Grid for Predictors */
      .bottom-predictors-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      @media (min-width: 640px) {
        .bottom-predictors-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (min-width: 1024px) {
        .bottom-predictors-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }
      .predictor-link-card {
        display: block;
        padding: 1rem;
        background-color: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: 0.5rem;
        text-decoration: none;
        color: var(--gray-800);
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s;
        text-align: center;
      }
      .predictor-link-card:hover {
        background-color: var(--white);
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
      }