:root {
  --bg: #02070d;
  --panel: #06101a;
  --panel2: #071420;
  --line: #1f3548;
  --blue: #1192ff;
  --blue2: #57b7ff;
  --green: #39ff88;
  --text: #e8f2ff;
  --muted: #91a4b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 70% 20%, #08213a 0%, #02070d 42%, #000 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 290px;
  border-right: 1px solid var(--line);
  background: rgba(3, 10, 18, .94);
  padding: 22px 16px;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}

.brand strong {
  color: var(--blue);
  font-size: 22px;
}

.brand span, .user span, small {
  display: block;
  color: var(--muted);
}

.waffle {
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle, var(--blue) 3px, transparent 4px) 0 0/10px 10px;
}

nav a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 4px;
}

nav a:hover, nav a.active {
  background: linear-gradient(90deg, rgba(17,146,255,.32), rgba(17,146,255,.08));
  outline: 1px solid #164b7a;
}

nav p {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 13px;
  margin: 24px 8px 10px;
}

main {
  margin-left: 290px;
  width: calc(100% - 290px);
}

.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
}

.topbar input {
  flex: 1;
  max-width: 860px;
  background: #02070d;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
}

.user {
  margin-left: auto;
  text-align: right;
}

.user a, footer span:first-child {
  color: var(--blue);
  text-decoration: none;
}

.user b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c2430;
  margin-left: 12px;
}

.grid, .cards, .lower {
  padding: 22px 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr .9fr .9fr;
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, rgba(7,20,32,.92), rgba(2,7,13,.92));
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  box-shadow: 0 0 28px rgba(17,146,255,.06);
}

.intro h1 {
  color: var(--blue);
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 16px;
}

.intro h1 span { color: var(--blue2); }

h2 {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .08em;
}

h3, h4 {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.intro h3 {
  color: var(--blue2);
}

p {
  color: #c6d4e2;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.actions a {
  color: var(--text);
  text-decoration: none;
}

.button {
  border: 1px solid var(--blue);
  color: white !important;
  background: linear-gradient(90deg, #075ea8, #0b77d5);
  padding: 12px 18px;
  border-radius: 4px;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 12px var(--green);
}

.status p, .card em {
  color: var(--green);
  font-style: normal;
}

.status strong {
  display: block;
  margin: 4px 0 18px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.metrics div {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.metrics b, .card b {
  color: var(--blue);
  display: block;
  font-size: 26px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card b {
  color: var(--text);
  font-size: 34px;
}

.lower {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.25fr;
  gap: 18px;
  padding-bottom: 24px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 12px 0;
  color: #d7e4f0;
}

li::before {
  content: "› ";
  color: var(--blue);
}

.columns {
  columns: 2;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.projects article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: rgba(0,0,0,.18);
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .sidebar { position: static; width: 100%; }
  body { display: block; }
  main { margin-left: 0; width: 100%; }
  .hero, .cards, .lower { grid-template-columns: 1fr; }
  .topbar { height: auto; flex-wrap: wrap; padding: 18px; }
}

/* visual upgrade pass */
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(0,120,212,.28), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(0,80,160,.22), transparent 28%),
    linear-gradient(135deg, #02070d 0%, #06111d 46%, #010409 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(4,14,24,.98), rgba(0,3,8,.98)),
    radial-gradient(circle at top left, rgba(0,120,212,.25), transparent 45%);
  box-shadow: inset -1px 0 0 rgba(77,166,255,.22), 18px 0 60px rgba(0,0,0,.28);
}

.brand {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(80,160,255,.2);
}

nav a {
  font-weight: 600;
  color: #dcecff;
  border: 1px solid transparent;
}

nav a.active {
  background: linear-gradient(90deg, rgba(0,120,212,.55), rgba(0,120,212,.14));
  border-color: rgba(77,166,255,.52);
  box-shadow: inset 3px 0 0 var(--blue), 0 0 22px rgba(0,120,212,.18);
}

nav p {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav p::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(77,166,255,.4), transparent);
}

.topbar {
  background: rgba(1,8,15,.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar input {
  background: rgba(0,0,0,.42);
  border-color: rgba(82,162,255,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 0 28px rgba(0,120,212,.08);
}

.panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(72,145,210,.35);
  background:
    linear-gradient(180deg, rgba(8,26,42,.92), rgba(2,8,14,.96)),
    radial-gradient(circle at 100% 0%, rgba(0,120,212,.18), transparent 40%);
  box-shadow:
    0 18px 50px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(77,166,255,.10), transparent 24%, transparent 70%, rgba(0,120,212,.06));
}

.panel:hover {
  border-color: rgba(77,166,255,.75);
  box-shadow: 0 0 0 1px rgba(77,166,255,.12), 0 24px 70px rgba(0,80,160,.18);
}

.intro {
  background:
    radial-gradient(circle at 86% 18%, rgba(0,120,212,.22), transparent 34%),
    linear-gradient(180deg, rgba(7,23,38,.95), rgba(1,8,14,.96));
}

.intro h1 {
  text-shadow: 0 0 28px rgba(0,120,212,.35);
}

.intro h3 {
  display: inline;
  padding: 2px 5px;
  background: rgba(77,166,255,.18);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.button {
  box-shadow: 0 0 22px rgba(0,120,212,.35);
}

.card {
  min-height: 190px;
}

.card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 26px;
  height: 42px;
  background:
    linear-gradient(135deg, transparent 0 8%, var(--blue) 8% 10%, transparent 10% 18%, var(--blue) 18% 20%, transparent 20% 35%, var(--blue) 35% 37%, transparent 37%),
    linear-gradient(to top, rgba(0,120,212,.18), transparent);
  opacity: .7;
  clip-path: polygon(0 72%, 12% 54%, 22% 62%, 34% 38%, 48% 56%, 63% 28%, 76% 46%, 90% 18%, 100% 34%, 100% 100%, 0 100%);
}

.lower .panel {
  min-height: 260px;
}

.projects article {
  background: linear-gradient(180deg, rgba(6,18,30,.9), rgba(0,3,8,.7));
  border-color: rgba(72,145,210,.35);
  transition: .2s ease;
}

.projects article:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

footer {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
}

/* Fix broken metric card chart overlay */
.card::after {
  display: none !important;
  content: none !important;
}

.card {
  min-height: 170px;
  padding-bottom: 24px;
}

.card em {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-style: normal;
  position: static;
}

/* HARD FIX: remove broken fake chart from metric cards */
.cards .card::after,
.card::after,
article.card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  clip-path: none !important;
  height: 0 !important;
  opacity: 0 !important;
}

.cards .card,
article.card {
  min-height: 150px !important;
  padding: 22px !important;
}

.cards .card em,
article.card em {
  display: block !important;
  margin-top: 18px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Intune-console polish pass */
:root {
  --bg: #01060c;
  --panel: #050e17;
  --panel2: #071827;
  --line: #1d3952;
  --blue: #1294ff;
  --blue2: #55b9ff;
  --green: #22ff86;
  --text: #eaf4ff;
  --muted: #8fa5b8;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(18,148,255,.16), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(18,148,255,.10), transparent 32%),
    linear-gradient(180deg, #01060c 0%, #020b13 55%, #000409 100%);
  font-family: "Cascadia Mono", "Consolas", "Segoe UI", monospace;
}

.sidebar {
  background: linear-gradient(180deg, #040b13, #010409);
  border-right: 1px solid rgba(18,148,255,.28);
}

.topbar {
  background: rgba(0,5,10,.88);
  border-bottom: 1px solid rgba(18,148,255,.23);
}

.panel {
  background:
    radial-gradient(circle at top right, rgba(18,148,255,.08), transparent 38%),
    linear-gradient(180deg, rgba(5,16,27,.96), rgba(1,7,13,.98));
  border: 1px solid rgba(70,150,220,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 0 0 1px rgba(18,148,255,.03),
    0 18px 50px rgba(0,0,0,.22);
}

.panel:hover {
  border-color: rgba(18,148,255,.75);
  box-shadow:
    0 0 0 1px rgba(18,148,255,.18),
    0 0 32px rgba(18,148,255,.12);
}

.intro h1 {
  font-size: 38px;
  color: var(--blue);
  text-shadow: 0 0 22px rgba(18,148,255,.32);
}

.intro h3 {
  background: none !important;
  padding: 0 !important;
  color: var(--blue);
  display: block;
  line-height: 1.5;
}

nav a.active {
  background: linear-gradient(90deg, rgba(18,148,255,.35), rgba(18,148,255,.08));
  border: 1px solid rgba(18,148,255,.6);
  box-shadow: inset 3px 0 0 var(--blue), 0 0 20px rgba(18,148,255,.15);
}

.cards .card {
  min-height: 220px !important;
}

.cards .card::after {
  display: block !important;
  content: "" !important;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 48px;
  height: 58px;
  opacity: .9;
  background:
    linear-gradient(to top, rgba(18,148,255,.18), transparent),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 300 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='0,60 18,55 35,38 50,47 70,30 92,42 115,35 137,48 158,44 180,26 200,34 222,22 240,36 262,18 300,28' fill='none' stroke='%231294ff' stroke-width='3'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  clip-path: none !important;
  pointer-events: none;
}

.cards .card em {
  position: absolute !important;
  left: 22px;
  bottom: 18px;
  color: var(--green);
  z-index: 2;
}

.projects article {
  border-color: rgba(70,150,220,.34);
  background: rgba(2,10,18,.78);
}

.projects article h4,
h3,
h4 {
  color: var(--blue);
}

footer {
  color: var(--muted);
  background: rgba(0,4,8,.75);
}

footer span:first-child {
  color: var(--green);
}

/* HARD FIX: remove broken fake chart from metric cards */
.cards .card::after,
.card::after,
article.card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  clip-path: none !important;
  height: 0 !important;
  opacity: 0 !important;
}

.cards .card,
article.card {
  min-height: 150px !important;
  padding: 22px !important;
}

.cards .card em,
article.card em {
  display: block !important;
  margin-top: 18px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* ===== Typography Override (Microsoft Intune Style) ===== */

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 15% 5%, rgba(0,120,212,.12), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(0,120,212,.08), transparent 35%),
        linear-gradient(180deg,#060b12 0%,#04080f 40%,#02050a 100%);

    color: #f3f8ff;

    font-family:
        "Segoe UI",
        "Segoe UI Variable",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif !important;

    font-size: 15px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family:
        "Cascadia Code",
        Consolas,
        monospace !important;

    font-weight: 600;
    letter-spacing: -.03em;
}

h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
label,
li,
span,
small,
strong {
    font-family:
        "Segoe UI",
        "Segoe UI Variable",
        system-ui,
        sans-serif !important;
}


/* Easter egg: BSOD → Windows XP recovery */
.glitching main,
.glitching .sidebar {
  animation: glitchShake .35s infinite;
  filter: hue-rotate(20deg) contrast(1.25);
}

@keyframes glitchShake {
  0% { transform: translate(0); }
  25% { transform: translate(3px, -2px); }
  50% { transform: translate(-4px, 2px); }
  75% { transform: translate(2px, 3px); }
  100% { transform: translate(0); }
}

#bsod,
#xp {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

#bsod.show,
#xp.show {
  display: block;
}

#bsod {
  background: #0078d7;
  color: white;
  font-family: "Segoe UI", sans-serif;
  padding: 9vw;
}

#bsod h1 {
  font-size: 96px;
  margin: 0 0 30px;
  font-family: "Segoe UI", sans-serif !important;
}

#bsod p {
  font-size: 28px;
  max-width: 900px;
  color: white;
}

#bsod .small {
  font-size: 18px;
  opacity: .85;
}

#xp {
  background:
    linear-gradient(#245edb 0 12%, #3c8bff 12% 84%, #2f7c25 84%);
  font-family: Tahoma, "Segoe UI", sans-serif;
}

.xp-window {
  width: min(520px, 90vw);
  margin: 18vh auto;
  border: 2px solid #003c9e;
  border-radius: 8px 8px 4px 4px;
  background: #ece9d8;
  box-shadow: 8px 10px 30px rgba(0,0,0,.45);
}

.xp-title {
  background: linear-gradient(90deg, #0046d5, #3f8cff);
  color: white;
  padding: 9px 12px;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}

.xp-body {
  color: #111;
  padding: 24px;
}

.xp-body h2,
.xp-body p {
  color: #111;
}

.xp-body button {
  background: linear-gradient(#fff, #d6d3bd);
  border: 1px solid #888;
  padding: 8px 14px;
  border-radius: 3px;
}
