/**
 * NCLI Learning Management System (NCLI-LMS)
 * Layout System & Breakpoints
 * Path: public/assets/css/layout.css
 */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-app);
}

.app-content {
  flex: 1;
  padding: var(--space-6);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* CONTAINER RULE */
.container {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE GRID SYSTEM */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-dashboard {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* FLEX UTILITIES */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
