* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: rgba(255,255,255,0.92);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(120,120,255,.12), transparent 60%),
    radial-gradient(900px 700px at 80% 20%, rgba(120,255,200,.10), transparent 55%),
    #05060a;
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* faint header labels (Module:, Logout?) */
.toplabel {
  font-size: 11px;
  opacity: 0.55;
  user-select: none;
  letter-spacing: .2px;
}

/* logout link cleanup */
.toplink {
  font-size: 11px;
  opacity: 0.55;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  letter-spacing: .2px;
  transition: opacity 160ms ease;
}
.toplink:visited,
.toplink:active {
  color: rgba(255,255,255,0.92);
}
.toplink:hover {
  opacity: 0.85;
}

.select {
  appearance: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,16,0.6);
  color: rgba(255,255,255,0.92);
  outline: none;
}
.select:focus {
  border-color: rgba(140,180,255,0.55);
}

.workspace {
  flex: 1;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

/* module centering */
.module-root {
  padding: 20px;
  min-height: 60vh;
}
.module-root > * {
  margin-left: auto;
  margin-right: auto;
}

/* empty state */
.empty-state {
  height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0.9;
}
.empty-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.empty-sub {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}
