/**
 * WaMax Design System — Layouts
 */

/* 1. Centered Shell (for Onboarding, Device Connect, Login) */
.shell-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(7, 85, 217, 0.06) 0%, transparent 60%);
}

.centered-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* 2. Workspace Shell (for Dashboard, Portals, Management) */
.shell-workspace {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-subtle);
}

.workspace-body {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 64px);
}

.workspace-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  flex-shrink: 0;
}

.workspace-content {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .workspace-sidebar {
    display: none;
  }
  .workspace-content {
    padding: 16px;
  }
  .workspace-header {
    padding: 0 16px;
  }
  .shell-centered {
    padding: 16px 12px;
    justify-content: flex-start;
    padding-top: 32px;
  }
}
