/* ============================================================
   WINDOWS 7 WEB EDITION — AERO GLASS THEME
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --aero-blue: #4fa3ff;
  --aero-glow: rgba(120, 190, 255, .55);
  --glass-bg: rgba(190, 220, 245, .35);
  --glass-border: rgba(255, 255, 255, .55);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 13px;
  user-select: none;
  background: #000;
}

/* ================= DESKTOP BACKGROUND ================= */
#desktop {
  position: fixed;
  inset: 0;
  /* User-supplied wallpaper (local file, colour fallback underneath) */
  background:
    url("Desktop-lockscreenwallpaper.jpg") center / cover no-repeat,
    linear-gradient(160deg, #1c63b7 0%, #2a7fd4 40%, #1e6dc0 70%, #16559e 100%);
  background-attachment: fixed;
}
/* soft light streaks across the wallpaper */
#desktop::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,20,50,.28) 0%, transparent 22%, transparent 78%, rgba(0,20,50,.30) 100%);
  pointer-events: none;
}

/* ================= WELCOME / LOCK SCREEN ================= */
#welcome-screen {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  /* User-supplied wallpaper, darkened so the avatar reads clearly */
  background:
    linear-gradient(180deg, rgba(4,22,44,.45), rgba(4,22,44,.25) 45%, rgba(3,16,34,.60)),
    url("Desktop-lockscreenwallpaper.jpg") center / cover no-repeat,
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(60,160,220,.35), transparent 70%),
    linear-gradient(165deg, #0a4a78 0%, #0f6aa4 30%, #1487b8 55%, #0b5586 80%, #073a63 100%);
  transition: opacity .7s ease, visibility .7s;
}
#welcome-screen.fading { opacity: 0; visibility: hidden; pointer-events: none; }
#welcome-screen.hidden { display: none; }
.welcome-inner { text-align: center; }
#welcome-start {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; padding: 20px 40px;
  font-family: inherit;
}
/* glossy Aero glass outer ring around the avatar */
.welcome-avatar-frame {
  width: 128px; height: 128px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08) 45%, rgba(255,255,255,.28));
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 15px rgba(0,180,255,0.6),
    inset 0 1px 2px rgba(255,255,255,.9),
    0 6px 20px rgba(0,20,50,.55);
  backdrop-filter: blur(4px) saturate(1.3);
  -webkit-backdrop-filter: blur(4px) saturate(1.3);
  transition: box-shadow .25s, transform .25s;
}
.welcome-avatar {
  width: 108px; height: 108px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px; color: #fff; font-weight: 600;
  background: linear-gradient(180deg, #8fc7f7, #2f7cc4);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.7), inset 0 -4px 8px rgba(0,30,80,.4);
  text-shadow: 0 2px 4px rgba(0,30,80,.5);
}
#welcome-start:hover .welcome-avatar-frame,
#welcome-start:focus .welcome-avatar-frame {
  box-shadow:
    0 0 28px rgba(0,190,255,0.95),
    inset 0 1px 2px rgba(255,255,255,.95),
    0 6px 24px rgba(0,20,50,.6);
  transform: scale(1.05);
}
.welcome-label {
  font-size: 22px; color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,20,50,.85), 0 0 14px rgba(120,200,255,.5);
  letter-spacing: .5px;
}
.welcome-hint {
  margin-top: 6px; font-size: 12.5px; color: #a8d4f0;
  opacity: .85; animation: welcomePulse 2.4s ease-in-out infinite;
}
@keyframes welcomePulse { 0%,100% { opacity:.35; } 50% { opacity:.9; } }
.welcome-footer {
  position: absolute; bottom: 30px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #eaf6ff; font-size: 15px; font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,20,50,.8);
}
.welcome-brand { letter-spacing: .3px; }
.welcome-brand .brand-7 { font-style: italic; font-weight: 600; margin: 0 4px 0 6px; }
.welcome-brand em { font-style: normal; opacity: .8; font-size: 13.5px; }
.welcome-flag {
  grid-template-columns: 12px 12px; grid-template-rows: 12px 12px; gap: 2px;
}

/* ================= BOOT / SHUTDOWN ================= */
#boot-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s;
  visibility: visible;
}
#boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.boot-inner { text-align: center; color: #fff; }
.boot-text { margin: 18px 0 14px; font-size: 18px; letter-spacing: .5px; color: #d6ecff; }
.boot-bar {
  width: 220px; height: 8px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.4); border-radius: 5px; overflow: hidden;
}
.boot-fill {
  width: 40%; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, transparent, #7fd4ff, transparent);
  animation: bootslide 1.4s linear infinite;
}
@keyframes bootslide { from { transform: translateX(-100%);} to { transform: translateX(350%);} }

/* four-pane flag logo */
.win7-flag-logo, .orb-flag {
  display: inline-grid;
  grid-template-columns: 14px 14px; grid-template-rows: 14px 14px;
  gap: 2px; transform: perspective(80px) rotateY(-12deg);
}
.win7-flag-logo span, .orb-flag span { border-radius: 2px; }
.win7-flag-logo span:nth-child(1) { background:#f65314; border-radius: 50% 50% 50% 4px; }
.win7-flag-logo span:nth-child(2) { background:#7cbb00; border-radius: 50% 50% 4px 50%; }
.win7-flag-logo span:nth-child(3) { background:#00a1f1; border-radius: 50% 4px 50% 50%; }
.win7-flag-logo span:nth-child(4) { background:#ffbb00; border-radius: 4px 50% 50% 50%; }

#shutdown-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 1.2s;
}
#shutdown-overlay.active { background: rgba(0,0,0,.92); pointer-events: all; }
.shutdown-inner { color: #cfe6ff; text-align: center; opacity: 0; transition: opacity .6s; }
#shutdown-overlay.active .shutdown-inner { opacity: 1; }
.shutdown-spinner {
  width: 32px; height: 32px; margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.2); border-top-color: #7fd4ff;
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= DESKTOP ICONS ================= */
/* Vertical column flow: top-to-bottom in column 1, wrap to column 2, etc. */
#desktop-icons {
  position: absolute; inset: 8px 10px 48px 4px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 96px);
  grid-auto-columns: 86px;
  justify-content: start;
  pointer-events: none; /* container is transparent — icons opt in */
}
.desk-icon {
  pointer-events: auto;
  width: 86px; height: 96px;
  padding: 15px 0 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 5px;
  border: 1px solid transparent; border-radius: 4px;
  cursor: default; text-align: center;
  overflow: hidden;
}
.desk-icon .di-glyph {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; line-height: 48px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
  transition: transform .12s;
}
.desk-icon .di-glyph img {
  width: 48px; height: 48px;
  image-rendering: -webkit-optimize-contrast;
  pointer-events: none;
}
.desk-icon .di-label {
  width: 100%;
  color: #fff; font-size: 11.5px; line-height: 1.25;
  /* heavier halo so labels stay readable on light wallpapers too */
  text-shadow:
    0 0 3px rgba(0,0,0,.95),
    0 0 6px rgba(0,0,0,.85),
    1px 1px 2px #000,
    -1px -1px 2px rgba(0,0,0,.9);
  overflow: hidden;
  display: -webkit-box;
  display: box;
  display: -moz-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.desk-icon:hover {
  background: rgba(0, 120, 215, 0.15);
  border-color: rgba(0, 120, 215, 0.35);
}
.desk-icon:hover .di-glyph { transform: scale(1.08); }
.desk-icon.selected {
  background: rgba(0, 120, 215, 0.3);
  border: 1px solid rgba(0, 120, 215, 0.6);
}
.desk-icon.dragging {
  opacity: .85;
  box-shadow: 0 6px 18px rgba(0,10,30,.5);
  z-index: 50;
}

/* ================= WINDOWS ================= */
#windows-layer { position: absolute; inset: 0 0 40px 0; pointer-events: none; }

.window {
  pointer-events: auto; /* opt back in — the layer above us is click-through */
  position: absolute;
  min-width: 280px; min-height: 160px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(200,220,255,0.2));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: winopen .18s ease-out;
}
@keyframes winopen {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.window.minimized { display: none; }
.window.focused {
  box-shadow:
    0 10px 30px rgba(0,0,0,0.5),
    0 0 22px var(--aero-glow);
}
.window:not(.focused) .title-bar { opacity: .82; }

/* --- title bar --- */
.title-bar {
  height: 30px; flex: 0 0 30px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 4px 0 9px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.55) 0%,
    rgba(190,220,245,.30) 45%,
    rgba(110,160,215,.28) 50%,
    rgba(190,220,245,.42) 100%);
  border-bottom: 1px solid rgba(70,120,180,.35);
  cursor: default; position: relative;
}
/* glossy top reflection */
.title-bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0));
  border-radius: 7px 7px 0 0; pointer-events: none;
}
.tb-icon { font-size: 15px; }
.tb-title {
  flex: 1; font-size: 12.5px; color: #17364f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.tb-controls { display: flex; gap: 2px; z-index: 2; }
.tb-btn {
  width: 29px; height: 22px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(180,205,230,.35));
  color: #123; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, box-shadow .1s;
}
.tb-btn:hover {
  background: linear-gradient(180deg, #eaf6ff, #bfe1ff);
  box-shadow: 0 0 8px var(--aero-glow);
}
.tb-btn.close:hover {
  background: linear-gradient(180deg, #ff6a5e, #d8301c);
  border-color: #ff8a7a; color: #fff;
}

/* --- window body --- */
.window-body {
  flex: 1; margin: 0 4px 4px;
  background: #fff;
  border: 1px solid rgba(80,120,170,.4);
  border-radius: 0 0 3px 3px;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.window-body.plain { background: #f0f4f9; }

/* resize handles */
.rz { position: absolute; z-index: 5; }
.rz-e { top: 8px; bottom: 8px; right: -3px; width: 7px; cursor: ew-resize; }
.rz-w { top: 8px; bottom: 8px; left: -3px; width: 7px; cursor: ew-resize; }
.rz-s { left: 8px; right: 8px; bottom: -3px; height: 7px; cursor: ns-resize; }
.rz-n { left: 8px; right: 8px; top: -3px; height: 7px; cursor: ns-resize; }
.rz-se { right: -3px; bottom: -3px; width: 14px; height: 14px; cursor: nwse-resize; }
.rz-sw { left: -3px; bottom: -3px; width: 14px; height: 14px; cursor: nesw-resize; }
.rz-ne { right: -3px; top: -3px; width: 14px; height: 14px; cursor: nesw-resize; }
.rz-nw { left: -3px; top: -3px; width: 14px; height: 14px; cursor: nwse-resize; }

.window.maximized {
  border-radius: 0;
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  transform: none !important;
}

/* ================= TASKBAR ================= */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; gap: 4px; padding: 0 0 0 4px;
  background: rgba(10, 30, 60, 0.5);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 -2px 14px rgba(0,20,50,.45);
  z-index: 5000;
}

/* Start orb */
#start-button {
  width: 52px; height: 40px; margin: 0 6px 0 0;
  border: none; cursor: pointer; position: relative;
  background: radial-gradient(circle at 50% 32%,
    #cfeaff 0%, #6db9f5 28%, #1e6fc4 60%, #0a3a76 88%, #062b58 100%);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(120,200,255,.85),
    inset 0 2px 5px rgba(255,255,255,.9),
    inset 0 -8px 12px rgba(0,30,80,.6);
  transition: box-shadow .15s, filter .15s;
}
#start-button:hover {
  filter: brightness(1.2) saturate(1.1);
  box-shadow: 0 0 22px rgba(150,220,255,1),
    inset 0 2px 5px rgba(255,255,255,.95), inset 0 -8px 12px rgba(0,30,80,.5);
}
#start-button.active { filter: brightness(1.3); }
.orb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.orb-flag {
  grid-template-columns: 10px 10px; grid-template-rows: 10px 10px;
  gap: 2px;
}
.orb-flag span { box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.orb-flag span:nth-child(1) { background:#f65314; border-radius: 50% 50% 50% 3px; }
.orb-flag span:nth-child(2) { background:#7cbb00; border-radius: 50% 50% 3px 50%; }
.orb-flag span:nth-child(3) { background:#00a1f1; border-radius: 50% 3px 50% 50%; }
.orb-flag span:nth-child(4) { background:#ffbb00; border-radius: 3px 50% 50% 50%; }

/* Taskbar tabs */
#taskbar-tabs {
  flex: 1; display: flex; gap: 5px; align-items: center;
  overflow: hidden; height: 100%;
}
.task-tab {
  max-width: 180px; min-width: 60px; height: 30px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; border-radius: 3px; cursor: pointer;
  color: #eaf4ff; font-size: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(160,200,250,.35);
  white-space: nowrap; overflow: hidden;
  transition: background .12s, box-shadow .12s;
}
.task-tab .t-ico { font-size: 15px; flex: 0 0 auto; }
.task-tab .t-label { overflow: hidden; text-overflow: ellipsis; }
.task-tab:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(160,210,255,.18));
  box-shadow: inset 0 0 8px rgba(190,230,255,.35);
}
.task-tab.active {
  background: linear-gradient(180deg, rgba(190,225,255,.45), rgba(120,180,240,.28));
  box-shadow: inset 0 0 10px rgba(220,240,255,.5), 0 0 6px rgba(140,200,255,.4);
  border-color: rgba(210,235,255,.6);
}

/* System tray */
#system-tray {
  display: flex; align-items: center; gap: 8px;
  height: 100%; padding: 0 4px 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border-left: 1px solid rgba(160,200,250,.35);
}
#tray-sound { cursor: pointer; font-size: 15px; opacity: .95; }
#tray-sound.muted { opacity: .45; }
#tray-clock {
  display: flex; flex-direction: column; align-items: center;
  color: #f0f8ff; font-size: 11px; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  cursor: default;
}
#show-desktop {
  width: 14px; height: 34px; margin-left: 4px;
  border: 1px solid rgba(200,230,255,.4); border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.05));
  cursor: pointer;
}
#show-desktop:hover {
  background: linear-gradient(180deg, rgba(190,230,255,.5), rgba(120,180,240,.3));
}

/* ================= START MENU ================= */
#start-menu {
  position: absolute; bottom: 40px; left: 4px;
  width: 460px; height: 520px; max-height: calc(100vh - 60px);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(30,70,120,.78), rgba(15,40,80,.82));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(150,200,250,.6);
  box-shadow: 0 -6px 30px rgba(0,15,40,.6), 0 0 20px rgba(100,180,255,.25);
  display: none; z-index: 6000; overflow: hidden;
  flex-direction: column;
}
#start-menu.open { display: flex; animation: smopen .16s ease-out; }
@keyframes smopen { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform: none;} }

.sm-left {
  flex: 1; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(245,250,255,.94), rgba(220,235,250,.9));
  border-radius: 8px 0 0 0;
  padding: 8px 0 0;
}
.sm-apps { flex: 1; overflow-y: auto; padding: 0 6px; }
.sm-app {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 3px; cursor: pointer;
  color: #16344f; font-size: 13px;
}
.sm-app:hover { background: linear-gradient(180deg, #dceeff, #b5d9fb); }
.sm-app .s-ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; flex: 0 0 24px;
  overflow: visible;
}
/* scale the drawn (CSS) logos down to the uniform 24px grid */
.sm-app .s-ico .chrome-logo { width: 22px; height: 22px; }
.sm-app .s-ico .chrome-logo::after { width: 11px; height: 11px; border-width: 2px; }
.sm-app .s-ico .chrome-logo i { width: 14px; height: 7px; bottom: 2px; }
.sm-app .s-ico .cmd-logo {
  width: 26px; height: 20px;
  font-size: 10px; padding: 0 4px 2px;
  border-width: 1px; border-radius: 3px;
}

.sm-search {
  margin: 6px 10px 10px;
  padding: 7px 10px;
  border: 1px solid #7ba7cf; border-radius: 3px;
  font-size: 12.5px; font-family: inherit; outline: none;
  background: #fff;
}
.sm-search:focus { box-shadow: 0 0 6px var(--aero-glow); }

.sm-shutdown-zone {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 8px 10px; gap: 6px;
  background: linear-gradient(180deg, rgba(180,205,235,.6), rgba(150,180,215,.5));
  border-top: 1px solid rgba(100,140,190,.4);
}
#sm-shutdown {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 16px;
  border: 1px solid #6f9cc8; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #f4faff, #cfe6fb);
  color: #17364f; font-size: 12.5px; font-family: inherit;
}
#sm-shutdown:hover {
  background: linear-gradient(180deg, #eaf6ff, #b5d9fb);
  box-shadow: 0 0 8px var(--aero-glow);
}
.sm-sd-icon { font-size: 14px; color: #1a7ad4; }

.sm-right {
  width: 150px; padding: 10px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.sm-user {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 12px; color: #eaf4ff; font-size: 13px;
}
.sm-avatar {
  width: 58px; height: 58px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; font-weight: 600;
  background: linear-gradient(180deg, #8fc7f7, #2f7cc4);
  border: 2px solid rgba(230,245,255,.85);
  box-shadow: 0 0 10px rgba(120,200,255,.5);
}
.sm-links {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(160,200,250,.35); padding-top: 8px;
}
.sm-links a {
  color: #eaf6ff; font-size: 12.5px; padding: 6px 8px;
  border-radius: 3px; cursor: pointer;
}
.sm-links a:hover { background: rgba(255,255,255,.15); }

/* ================= APPS ================= */
/* Notepad */
.notepad-area {
  flex: 1; width: 100%; resize: none; border: none; outline: none;
  font-family: Consolas, "Lucida Console", monospace; font-size: 13.5px;
  padding: 8px 10px; background: #fff; color: #111;
}
.notepad-bar {
  display: flex; gap: 4px; padding: 4px 6px;
  background: linear-gradient(180deg, #f4f8fc, #e2ecf6);
  border-bottom: 1px solid #b9cde2; flex: 0 0 auto;
}
.notepad-bar button {
  padding: 3px 10px; font-size: 12px; font-family: inherit;
  border: 1px solid #9db8d4; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #fff, #e4eef8);
}
.notepad-bar button:hover { background: #d8eaf9; }
.notepad-status {
  padding: 3px 8px; font-size: 11px; color: #4a6785;
  background: #eef4fb; border-top: 1px solid #d3e0ee; flex: 0 0 auto;
}

/* Calculator */
.calc { display: flex; flex-direction: column; height: 100%; background: #eff3f7; }
.calc-display {
  margin: 10px 10px 6px; padding: 8px 12px;
  background: linear-gradient(180deg, #2b2b2b, #171717);
  color: #fff; font-size: 26px; text-align: right;
  border-radius: 4px; border: 1px solid #444;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7);
  font-family: "Segoe UI", sans-serif;
  overflow: hidden; white-space: nowrap;
  min-height: 44px;
}
.calc-sub {
  margin: 0 10px; font-size: 11px; color: #67809b; min-height: 14px; text-align: right;
}
.calc-grid {
  flex: 1; display: grid; gap: 5px; padding: 8px 10px 10px;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
}
.calc-grid button {
  border: 1px solid #b9c8d8; border-radius: 3px; cursor: pointer;
  font-size: 14px; font-family: "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fdfefe, #dde6ef);
  color: #223;
  transition: background .08s, box-shadow .08s;
}
.calc-grid button:hover { background: #dcebfa; box-shadow: 0 0 5px var(--aero-glow); }
.calc-grid button:active { background: #b9d8f5; }
.calc-grid button.op { color: #0a5da8; font-weight: 600; }
.calc-grid button.eq {
  background: linear-gradient(180deg, #7db9ee, #2a7fd4);
  color: #fff; border-color: #1e66b4;
}
.calc-grid button.wide { grid-column: span 2; }

/* CMD */
.cmd {
  flex: 1; width: 100%; resize: none; border: none; outline: none;
  background: #0c0c0c; color: #cccccc;
  font-family: Consolas, "Lucida Console", monospace; font-size: 13.5px;
  padding: 6px 8px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-all;
}
.cmd.matrix { color: #0f0; }

/* Browser */
.browser { display: flex; flex-direction: column; height: 100%; }
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #f4f8fc, #e2ecf6);
  border-bottom: 1px solid #b9cde2; flex: 0 0 auto;
}
.browser-bar button {
  width: 26px; height: 24px; font-size: 13px; cursor: pointer;
  border: 1px solid #9db8d4; border-radius: 3px;
  background: linear-gradient(180deg, #fff, #e4eef8);
}
.browser-bar button:hover { background: #d8eaf9; }
.browser-bar button:disabled { opacity: .4; cursor: default; }
.browser-bar button:disabled:hover { background: linear-gradient(180deg, #fff, #e4eef8); }
.browser-go { width: auto !important; padding: 0 12px; }
.browser-url { flex: 1; padding: 4px 10px; font-size: 12px; }
.browser-bookmarks {
  display: flex; gap: 4px; padding: 4px 8px;
  background: linear-gradient(180deg, #eef4fb, #dce8f4);
  border-bottom: 1px solid #b9cde2; flex: 0 0 auto;
}
.browser-bookmarks button {
  padding: 3px 10px; font-size: 11.5px; cursor: pointer;
  border: 1px solid #9db8d4; border-radius: 3px;
  background: linear-gradient(180deg, #fff, #e4eef8); color: #2a5b8f;
}
.browser-bookmarks button:hover { background: #d8eaf9; box-shadow: 0 0 5px var(--aero-glow); }
.browser-url {
  flex: 1; padding: 4px 10px; font-size: 12px;
  border: 1px solid #7ba7cf; border-radius: 3px;
  font-family: inherit;
}
.browser-tabs {
  display: flex; gap: 3px; padding: 4px 6px 0;
  background: #dfe9f3; border-bottom: 1px solid #b9cde2; flex: 0 0 auto;
}
.browser-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: 12px; cursor: pointer;
  border: 1px solid #b9cde2; border-bottom: none;
  border-radius: 5px 5px 0 0; background: #cfdfee; color: #345;
}
.browser-tab.active { background: #fff; font-weight: 600; }
.browser-frame { flex: 1; border: none; width: 100%; background: #fff; }

/* Explorer / My Computer */
.explorer { flex: 1; overflow-y: auto; padding: 14px; background: #fff; }
.explorer h3 { color: #2a5b8f; font-size: 14px; margin: 4px 0 10px; }
.drive {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; margin-bottom: 8px;
  border: 1px solid #d4e2f0; border-radius: 4px; cursor: pointer;
}
.drive:hover { background: #eef6ff; border-color: #9fc6ea; }
.drive .d-ico { font-size: 30px; }
.drive-bar { height: 12px; width: 160px; background: #e3ecf5; border: 1px solid #b9cde2; border-radius: 3px; overflow: hidden; margin-top: 3px; }
.drive-fill { height: 100%; background: linear-gradient(90deg, #2a7fd4, #5fa8e8); }
.drive-meta { font-size: 11.5px; color: #67809b; }
.trash-note { margin-top: 14px; font-size: 12px; color: #67809b; }

/* scrollbars, Aero style */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #f0f4f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #cfe2f5, #9ec2e8);
  border: 1px solid #a8c4e0; border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover { background: #8ab8e6; }

/* selection */
::selection { background: #7db9ee; color: #fff; }

/* ---- Google Chrome logo (pure CSS) ---- */
.chrome-logo {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: conic-gradient(from -50deg,
    #ea4335 0deg 120deg,
    #fbbc05 120deg 210deg,
    #34a853 210deg 300deg,
    #ea4335 300deg 360deg);
  position: relative;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
  align-items: flex-end; justify-content: center;
}
.chrome-logo::after {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #fff;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.chrome-logo i {
  position: absolute;
  width: 26px; height: 12px;
  background: #fbbc05;
  left: 50%; bottom: 3px;
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  z-index: 0;
}

/* ---- CMD console icon (black box, glowing prompt) ---- */
.cmd-logo {
  display: inline-flex;
  width: 42px; height: 34px;
  border-radius: 5px;
  background: linear-gradient(180deg, #2b2b2b, #0d0d0d);
  border: 2px solid #555;
  color: #d6ff8a;
  font-family: Consolas, "Lucida Console", monospace;
  font-size: 15px; font-weight: 700;
  align-items: flex-end; justify-content: flex-start;
  padding: 0 6px 4px;
  text-shadow: 0 0 6px rgba(150, 255, 100, .9);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.15), 0 2px 4px rgba(0,0,0,.5);
}

/* ---- C++ Compiler logo (pure CSS IDE badge) ---- */
.cpp-logo {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 7px;
  background: linear-gradient(160deg, #1a6fb5 0%, #00599c 55%, #004482 100%);
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 19px; font-weight: 700;
  align-items: center; justify-content: center;
  letter-spacing: 0;
  box-shadow: inset 0 1px 3px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.5);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.cpp-logo b { font-weight: 800; color: #a8d4ff; margin-left: 1px; }
/* small variants for start menu / taskbar / title bar */
.sm-app .s-ico .cpp-logo { width: 24px; height: 24px; font-size: 12px; border-radius: 4px; border-width: 1px; }
.t-ico .cpp-logo, .tb-icon .cpp-logo { width: 22px; height: 22px; font-size: 11px; border-radius: 4px; border-width: 1px; }

/* ---- C++ Compiler app: edge-to-edge IDE iframe ---- */
.cpp-frame {
  width: 100%; height: 100%;
  border: none; display: block;
  background: #1e1e1e;
}

/* ---- Explorer folder navigation ---- */
/* small drawn-logo variants for taskbar tabs & title bars */
.t-ico .chrome-logo, .tb-icon .chrome-logo { width: 20px; height: 20px; }
.t-ico .chrome-logo::after, .tb-icon .chrome-logo::after { width: 10px; height: 10px; border-width: 2px; }
.t-ico .chrome-logo i, .tb-icon .chrome-logo i { width: 12px; height: 6px; bottom: 2px; }
.t-ico .cmd-logo, .tb-icon .cmd-logo {
  width: 24px; height: 17px;
  font-size: 10px; padding: 0 4px 2px;
  border-width: 1px; border-radius: 3px;
}
.exp-pathbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #f4f8fc, #e2ecf6);
  border-bottom: 1px solid #b9cde2;
}
.exp-pathbar button {
  width: 26px; height: 24px; cursor: pointer;
  border: 1px solid #9db8d4; border-radius: 3px;
  background: linear-gradient(180deg, #fff, #e4eef8);
}
.exp-pathbar button:disabled { opacity: .4; cursor: default; }
.exp-pathbar button:hover:not(:disabled) { background: #d8eaf9; }
.exp-path {
  flex: 1; padding: 3px 10px; font-size: 12px; color: #234;
  background: #fff; border: 1px solid #c6d8ea; border-radius: 3px;
}
.exp-content { padding: 12px 14px; overflow-y: auto; }
.exp-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-item {
  width: 108px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid transparent; border-radius: 4px;
  cursor: default; text-align: center; font-size: 12px; color: #234;
}
.exp-item .e-ico { font-size: 30px; }
.exp-item:hover {
  background: rgba(0, 120, 215, 0.15);
  border-color: rgba(0, 120, 215, 0.35);
}
.exp-item.selected {
  background: rgba(0, 120, 215, 0.3);
  border: 1px solid rgba(0, 120, 215, 0.6);
}
