/* Shared dashboard shell */
.app-body {
  min-height: 100vh;
  background: var(--bg-muted);
  color: var(--text-primary);
}
.app-shell {
  min-height: 100vh;
  position: relative;
}
.page-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.page-sidebar {
  background: var(--color-black);
  color: var(--text-light);
  padding: 1.25rem;
  border-right: 1px solid var(--border-dark);
}
.page-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.page-topbar {
  background: #fff;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-content {
  padding: 1.25rem;
}
.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  width: min(22rem, 90vw);
  display: grid;
  gap: 0.75rem;
}
.toast-item {
  color: #fff;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.toast-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  background: #198754;
}
.toast-error {
  background: #dc3545;
}
.toast-warning {
  background: #ffb020;
  color: #111;
}
.toast-info {
  background: var(--color-black);
}
.toast-message {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 992px) {
  .page-shell {
    grid-template-columns: 84px 1fr;
  }
}
@media (max-width: 768px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    display: none;
  }
  .page-content,
  .page-topbar {
    padding: 1rem;
  }
}
