.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; flex-shrink: 0; background: var(--navy); color: #fff;
  padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .25rem;
}
.sidebar .brand { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1rem; color: #fff; }
.sidebar a {
  display: flex; align-items: center; gap: .6em; color: #cfe6ee; text-decoration: none;
  padding: .55em .7em; border-radius: var(--radius-btn); font-weight: 700; font-size: .95rem;
}
.sidebar a:hover { background: rgba(255,255,255,.08); }
.sidebar a.active { background: var(--coral); color: #fff; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.5rem; border-bottom: 1px solid #eee; background: #fff;
}
.topbar .school-name { font-family: var(--font-head); font-size: 1.1rem; }
.view-container { padding: 1.5rem; flex: 1; overflow-x: auto; }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

.week-grid { display: grid; grid-template-columns: 140px repeat(5, 1fr); gap: .5rem; min-width: 700px; }
.week-grid .day-col { background: var(--paper); border-radius: var(--radius-card); padding: .5rem; min-height: 120px; }
.week-grid .day-head { font-weight: 800; margin-bottom: .4rem; }

.assignment-pill {
  background: #fff; border-radius: 10px; padding: .4em .6em; margin-bottom: .4em;
  box-shadow: var(--shadow-soft); font-size: .85rem; cursor: pointer;
}
.assignment-pill.done { text-decoration: line-through; opacity: .6; }

@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 500;
    transform: translateX(-100%); transition: transform .15s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: inline-block; }
  .view-container { padding: 1rem; }
}
