/* Login */
#login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
#login-view.d-none { display: none !important; }
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-brand {
  color: var(--pl-active);
  font-weight: 600;
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: var(--pl-sidebar);
  color: var(--pl-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pl-peach);
  padding: 0 1.25rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.sidebar .nav-link {
  color: var(--pl-sidebar-text);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.06);
}
.sidebar .nav-link.active {
  background-color: rgba(17,100,102,0.35);
  border-left-color: var(--pl-peach);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-y: auto;
}

.page-title {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Ticker links */
.ticker-link {
  font-weight: 600;
  color: var(--pl-text);
  text-decoration: none;
}
.ticker-link:hover {
  color: var(--pl-active);
  text-decoration: underline;
}

/* Stat cards */
.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--pl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Holdings table */
.holdings-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pl-text-muted);
  border-bottom-width: 2px;
}
.holdings-table td {
  vertical-align: middle;
}
.holdings-table .ticker {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 56px;
    overflow: hidden;
  }
  .sidebar .nav-text,
  .sidebar-brand span,
  .sidebar-footer {
    display: none;
  }
  .sidebar-brand {
    text-align: center;
  }
  .main-content {
    padding: 1rem;
  }
}
