/* Aussie ETF Finder shell tweaks (on top of WealthTrack wt.css) */

/* Main column needs breathing room from the sidebar */
.wt-shell .wt-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 2.5rem 2rem;
}

@media (max-width: 900px) {
  .wt-shell .wt-content {
    padding: 1.15rem 1.1rem 2rem;
  }
}

/* Favourites + compare trays in the left rail */
.aef-sidebar-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0.35rem 0.65rem 0.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--wt-border, rgba(148, 163, 184, 0.18));
}

[data-theme="light"] .aef-sidebar-panel {
  background: rgba(15, 23, 42, 0.03);
}

.aef-side-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wt-muted, #94a3b8);
  margin-bottom: 0.55rem;
}

.aef-side-panel-empty {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--wt-muted, #94a3b8);
  margin: 0 0 0.65rem;
}

.aef-fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aef-fav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 7px;
  padding: 0.28rem 0.35rem;
  transition: background 0.12s;
}

.aef-fav-item:hover {
  background: rgba(61, 156, 245, 0.1);
}

.aef-fav-item a {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--wt-ink, #e8eef7);
  font-size: 0.82rem;
  font-weight: 600;
}

.aef-fav-item a span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--wt-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aef-fav-item button {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--wt-muted, #94a3b8);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
}

.aef-fav-item button:hover {
  color: #f87171;
}

.aef-cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(61, 156, 245, 0.12);
  border: 1px solid rgba(61, 156, 245, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.15rem 0.15rem 0.15rem 0;
  color: var(--wt-ink, #e8eef7);
}

.aef-cmp-chip button {
  background: transparent;
  border: none;
  color: var(--wt-muted, #94a3b8);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

body.wt-sidebar-collapsed .aef-sidebar-panel {
  display: none;
}

/* Sidebar layout: brand + nav + panels + footer */
.wt-shell .wt-sidebar {
  display: flex;
  flex-direction: column;
}

.wt-shell .wt-sidebar-nav {
  flex: 0 0 auto;
  max-height: 40%;
  overflow-y: auto;
}
