/* public/css/app.css */
:root {
  --header-height: 48px;
  --sidebar-width: 260px;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Simple + admin layouts */
.simple-layout { background: #f5f6f8; min-height: 100vh; }
.admin-layout { background: #f8f9fb; }
.admin-main .card-header { background: #fff; }
.page-sort { width: 5.5rem; }

/* Portal layout */
.portal-header { height: var(--header-height); }
.portal-sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  z-index: 100;
}
.portal-sidebar .nav-link {
  color: #333;
  font-weight: 500;
  padding: .4rem 1rem;
  margin: .1rem .5rem;
  border-radius: .25rem;
}
.portal-sidebar .nav-link:hover { background-color: rgba(0, 0, 0, .05); }
.portal-sidebar .nav-link.active { color: #0d6efd; background-color: rgba(13, 110, 253, .1); }
.sidebar-category-btn { font-size: .75rem; letter-spacing: .08em; }
.sidebar-category-btn .sidebar-chevron { transition: transform .2s ease; }
.sidebar-category-btn[aria-expanded="false"] .sidebar-chevron { transform: rotate(-90deg); }

.portal-main {
  margin-left: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  position: relative;
}
#mainFrame {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#mainContent { padding: 1.5rem; }
.frame-welcome { padding-top: 20vh; }
.account-panel { min-width: 260px; }

@media (max-width: 767.98px) {
  .portal-sidebar { position: static; width: 100%; height: auto; }
  .portal-main { margin-left: 0; height: calc(100vh - var(--header-height)); }
}
