/* =====================================
   ExamDesk App Shell
===================================== */

.ed-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--ed-bg);
}

.ed-sidebar {
  background: var(--ed-sidebar-bg);
  color: var(--ed-sidebar-text);
  min-height: 100vh;
  padding: 1.1rem;
  position: sticky;
  top: 0;
  align-self: start;
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem 1.2rem;
  color: #ffffff;
  text-decoration: none;
}

.ed-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--ed-gold);
  color: var(--ed-on-accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(var(--ed-gold-rgb), 0.25);
}

.ed-brand-title {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ed-brand-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.58);
  margin-top: 0.2rem;
}

.ed-nav-section {
  margin-top: 1rem;
}

.ed-nav-label {
  color: rgba(255,255,255,0.42);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.ed-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ed-sidebar-text);
  text-decoration: none;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ed-nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #ffffff;
}

.ed-nav-link.active {
  background: var(--ed-sidebar-active);
  color: var(--ed-sidebar-active-text);
  box-shadow: inset 3px 0 0 var(--ed-gold);
}

.ed-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ed-topbar {
  height: 72px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

html[data-theme="dark"] .ed-topbar {
  background: rgba(15, 23, 42, 0.72);
}

.ed-workspace-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ed-gold-soft);
  color: var(--ed-gold);
  border: 1px solid rgba(var(--ed-gold-rgb), 0.28);
  border-radius: var(--ed-radius-pill);
  padding: 0.42rem 0.72rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.ed-content {
  padding: 1.5rem;
}

.ed-page {
  max-width: 1440px;
  margin: 0 auto;
}

.ed-page-header {
  background: var(--ed-navy);
  color: #ffffff;
  border-radius: var(--ed-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ed-shadow-lg);
  margin-bottom: 1.4rem;
}

.ed-page-header h1 {
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ed-page-header p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
}

.ed-eyebrow {
  color: var(--ed-gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.45rem;
}

@media (max-width: 991px) {
  .ed-app-shell {
    grid-template-columns: 1fr;
  }

  .ed-sidebar {
    position: static;
    min-height: auto;
  }

  .ed-content {
    padding: 1rem;
  }

  .ed-topbar {
    position: static;
  }
}

/* =====================================
   Custom ExamDesk Grid
===================================== */

.ed-grid {
  display: grid;
  gap: 1rem;
}

.ed-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ed-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ed-two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .ed-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ed-grid-2,
  .ed-grid-3,
  .ed-grid-4 {
    grid-template-columns: 1fr;
  }
}
/* =====================================
   Page Header Helpers
===================================== */

.ed-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ed-action-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ed-main-col {
  min-width: 0;
}

.ed-side-col {
  min-width: 0;
}

@media (max-width: 900px) {
  .ed-page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}