* {
  scrollbar-width: none;
  scrollbar-color: #cbd5e1 transparent;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "DM Sans",
    sans-serif;
}

.container.nav-container {
  margin-top: 0;
}

/* Layout */
.main-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .main-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
  }
}

/* Sidebar */
.sidebar {
  width: 100%;
  position: sticky;
  top: 5rem;
  background-color: #ffffff;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .sidebar {
    width: 30%;
    /* top: 6rem; */
    top: 136px;
    height: 85vh;
  }
}

.sidebar.mobile {
  display: block;
  margin-bottom: 1.5rem;
  overflow-y: visible;
}

.sidebar.desktop {
  display: none;
}

@media (min-width: 768px) {
  .sidebar.mobile {
    display: none;
  }

  .sidebar.desktop {
    display: block;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-button {
  width: 100%;
  padding: 0.75rem;
  padding-right: 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.375rem;
  background-color: #ffffff;
  text-align: left;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.dropdown-button:hover {
  border-color: #d1d5db;
}

.dropdown-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
  pointer-events: none;
}

.dropdown-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563;
  transition: transform 0.2s;
}

.dropdown-arrow svg.rotated {
  transform: rotate(180deg);
}

.dropdown-panel {
  display: none;
  position: absolute;
  z-index: 10;
  margin-top: 0.5rem;
  width: 100%;
  background-color: #ffffff;
  max-height: 24rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: auto;
}

.dropdown-panel.active {
  display: block;
}

.dropdown-content {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Category Sections */
.category-section {
  flex: 1;
  border: 1px solid #f3f4f6;
}

.category-header {
  padding: 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  /* background: var(--brand-soft); */
  background: var(--logo-light-yellow);
  transition: all 0.3s ease;
}

.category-header:hover {
  background-color: #f9fafb;
}

.category-header-mobile {
  padding: 1rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

.category-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fund-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.fund-item {
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.fund-item:last-child {
  border-bottom: none;
}

.fund-link {
  display: block;
  padding: 0.75rem;
  background-color: #ffffff;
  text-decoration: none;
  color: #374151;
  transition: background-color 0.15s;
}

.fund-link:hover {
  background-color: #f9fafb;
  cursor: pointer;
}

.fund-link.active {
  border-left: 4px solid #2563eb;
}

.fund-link-mobile.active {
  /* border-left: 4px solid #2563eb; */
  border-left: 4px solid var(--logo-light-yellow);
  color: #3b82f6;
  font-weight: 500;
}

.fund-link span {
  margin-left: 1rem;
  display: inline-block;
  margin-left: 8px;
}

.fund-link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fund-link-mobile {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.15s;
}

.fund-link-mobile:hover {
  background-color: #dbeafe;
}

.fund-empty {
  padding: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
  font-style: italic;
}

/* Main Content */
.content-wrapper {
  width: 100%;
  /* margin-top: 3.5rem; */
}

.header-section {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.page-description {
  color: #4b5563;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .page-description {
    font-size: 1.12rem;
  }
}

/* Table */
.table-container {
  overflow-x: auto;
  background-color: #ffffff;
}

.data-table {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  width: 100%;
  border-collapse: collapse;
}

@media (min-width: 768px) {
  .data-table {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin: 0;
  }
}

.table-header {
  background-color: #f3f4f6;
  background-color: aliceblue;
}

.table-header th {
  font-size: 0.75rem;
  color: #4b5563;
  word-break: break-word;
  padding: 0.5rem;
  text-align: left;
  font-weight: 400;
}

.table-header th:first-child {
  position: sticky;
  left: 0;
  /* background-color: #f3f4f6; */
  /* background-color: var(--brand-soft); */
  min-width: 140px;
}

.table-header th:not(:first-child) {
  text-align: right;
}

.sort-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #4b5563;
}

.sort-button.active {
  color: #2563eb;
  font-weight: 500;
}

.sort-button svg {
  width: 1rem;
  height: 1rem;
}

.sort-button.active svg {
  color: #2563eb;
}

.sort-button svg.rotate-180 {
  transform: rotate(180deg);
}

.table-row {
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: #f9fafb;
}

.table-cell {
  color: #111827;
  word-break: break-word;
  font-size: 0.875rem;
}

.table-cell:first-child {
  position: sticky;
  left: 0;
  background-color: #ffffff;
}

@media (min-width: 1024px) {
  .table-cell:first-child {
    min-width: 150px;
  }
}

.table-row:hover .table-cell {
  background-color: #f9fafb;
}

.table-cell:not(:first-child) {
  min-width: 100px;
  text-align: right;
}

.scheme-link {
  display: block;
  width: 100%;
  padding: 0.625rem 0.5rem;
  text-decoration: none;
  color: inherit;
}

.scheme-name {
  font-weight: 500;
}

.return-positive {
  color: #15803d;
  font-weight: 500;
}

.return-negative {
  color: #dc2626;
  font-weight: 500;
}

.cell-value {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pagination-wrapper {
    flex-direction: row;
    gap: 1rem;
  }
}

.pagination-info {
  font-size: 0.875rem;
  color: #374151;
}

.pagination-info .font-medium {
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-button {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.pagination-button:hover {
  background-color: #f9fafb;
}

.pagination-button.hidden {
  display: none;
}

.pagination-button.active {
  color: #ffffff;
  background-color: #2563eb;
  border-color: #2563eb;
}

.pagination-button.disabled {
  color: #9ca3af;
  background-color: #f3f4f6;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.pagination-button.disabled:hover {
  background-color: #f3f4f6;
}

/* Utility Classes */
.checkmark-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}

/* Z-index utilities */
.z-50 {
  z-index: 50;
}

.z-40 {
  z-index: 40;
}

.z-10 {
  z-index: 10;
}
