/* ===================================================================
   apps.css - content styling inside the windows
   =================================================================== */

.app { padding: 0; font-size: 13px; color: #1a1a1a; }
.app .pad { padding: 16px 18px; }
.app h1 { font-size: 19px; margin: 0 0 4px; }
.app h2 { font-size: 15px; margin: 18px 0 8px; color: #14458f; border-bottom: 1px solid #d6e0ef; padding-bottom: 4px; }
.app p { line-height: 1.55; margin: 0 0 10px; }
.app a.link { color: #1a4fd0; text-decoration: underline; }
.muted { color: #5a5a5a; }
.mono { font-family: "Lucida Console","Courier New",monospace; }

/* explorer-style header bar */
.exp-band {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg,#4b91dd,#2f6fce);
  color: #fff;
}
.exp-band img { width: 52px; height: 52px; border-radius: 6px; border: 2px solid #ffffffaa; object-fit: cover; }
.exp-band .eb-title { font-size: 18px; font-weight: bold; }
.exp-band .eb-sub { font-size: 12px; color: #dceafd; }
.exp-band .eb-price { margin-left: auto; text-align: right; }
.exp-band .eb-price .p { font-size: 20px; font-weight: bold; }
.exp-band .eb-price .c { font-size: 12px; }
.up { color: #35d07f; } .down { color: #ff8f8f; }
.up-d { color: #12894f; } .down-d { color: #c62d18; }

/* stat grid */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; }
.stat {
  background: linear-gradient(180deg,#fbfbf6,#eef0e6);
  border: 1px solid #cdd0c2; border-radius: 6px;
  padding: 10px 12px;
}
.stat .k { font-size: 11px; color: #5a5a5a; text-transform: uppercase; letter-spacing: .4px; }
.stat .v { font-size: 18px; font-weight: bold; margin-top: 2px; }
.stat .v small { font-size: 11px; font-weight: normal; color: #666; }

/* the CA field */
.ca-box {
  display: flex; align-items: center; gap: 8px;
  background: #101822; color: #6ff0a8;
  border: 1px solid #2a5f3f; border-radius: 5px;
  padding: 8px 10px; margin: 6px 0 4px;
  font-family: "Lucida Console",monospace; font-size: 12px;
  word-break: break-all;
}
.ca-box .copy { margin-left: auto; flex: 0 0 auto; }

/* pill buttons row */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.xp-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; font-size: 12.5px; font-weight: bold;
  background: linear-gradient(180deg,#fff,#e7e4d6);
  border: 1px solid #003c74; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #fff; color: #0a0a0a;
}
.xp-link:hover { background: linear-gradient(180deg,#fff,#f4edcd); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px #ffca4b; }
.xp-link .ei { font-size: 15px; }

/* holders / tables */
table.xp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.xp-table th { text-align: left; background: linear-gradient(180deg,#f6f5ee,#e3e0d2); border: 1px solid #c8c4b6; padding: 4px 8px; font-weight: bold; }
.xp-table td { border: 1px solid #e4e1d5; padding: 4px 8px; }
.xp-table tr:nth-child(even) td { background: #f7f7f2; }
.bar-cell { position: relative; }
.bar-cell .bar { position: absolute; left: 0; top: 0; bottom: 0; background: #cfe6ff; z-index: 0; }
.bar-cell span { position: relative; z-index: 1; }

/* ---------- Long's Dune analytics (Windows XP Task-Manager styling) ---------- */
.dune { background: var(--xp-face); color: #0a0a0a; min-height: 100%; font-family: var(--tahoma); }
.dune .pad { padding: 10px 12px; }
.dune .dune-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dune .dune-head .di { width: 20px; height: 20px; display: grid; place-items: center; font-size: 16px; }
.dune .dune-head h1 { font-size: 13px; margin: 0; font-weight: bold; }
.dune .dune-head .sub { font-size: 11px; color: #444; }

/* XP group box (sunken fieldset with a label on the border) */
.xp-group { border: 1px solid; border-color: #b0ac9c #fff #fff #b0ac9c; border-radius: 2px; margin: 10px 0; padding: 14px 12px 12px; position: relative; background: var(--xp-face); }
.xp-group > .gl { position: absolute; top: -8px; left: 9px; background: var(--xp-face); padding: 0 5px; font-size: 11.5px; font-weight: bold; color: #0a3d7c; }

/* readout cells like Task Manager's Totals/Commit boxes */
.dune-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 8px; }
.dune-card { border: 1px solid; border-color: #b0ac9c #fff #fff #b0ac9c; background: #f7f6ef; padding: 6px 9px; }
.dune-card .k { font-size: 10.5px; color: #444; }
.dune-card .v { font-size: 16px; font-weight: bold; color: #0a3d7c; margin-top: 1px; font-family: "Lucida Console",monospace; }

/* the green-on-black graph well, exactly like XP Task Manager Performance */
.tm-well { background: #000; border: 1px solid; border-color: #808080 #fff #fff #808080; padding: 0; overflow: hidden; position: relative; }
.tm-well .chart { width: 100%; display: block; }
.dune-panel .legend { display: flex; gap: 16px; font-size: 11.5px; margin: 2px 0 8px; color: #222; }
.dune-panel .legend i { width: 11px; height: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.dune-note { font-size: 11.5px; color: #333; margin-top: 8px; line-height: 1.5; }
.dune-note b { color: #0a3d7c; }
.dune .mono { font-family: "Lucida Console",monospace; }

/* ---------- Notepad ---------- */
.notepad { background: #fff; height: 100%; }
.notepad textarea, .notepad .np-body {
  width: 100%; height: 100%; border: none; resize: none;
  font-family: "Lucida Console","Courier New",monospace; font-size: 12.5px;
  padding: 10px 12px; line-height: 1.6; color: #111; white-space: pre-wrap;
  overflow: auto; outline: none;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; padding: 16px; }
.gallery .thumb { border: 1px solid #cfd3c4; background: #fff; padding: 5px; border-radius: 4px; text-align: center; }
.gallery .thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 3px; display: block; }
.gallery .thumb .cap { font-size: 10.5px; margin-top: 4px; color: #444; }
.gallery .thumb:hover { border-color: #4a7fd6; box-shadow: 0 0 0 1px #4a7fd6; }

/* image viewer window */
.imgview { background: #2b2b2b; height: 100%; display: grid; place-items: center; padding: 8px; }
.imgview img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 3px 14px rgba(0,0,0,.6); }

/* recycle bin */
.rbin { padding: 14px 16px; }
.rbin .row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid #eee; font-size: 12.5px; }
.rbin .row .g { font-size: 20px; width: 26px; text-align: center; }
.rbin .row s { color: #999; }

/* IE browser bar */
.ie-bar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--xp-face); border-bottom: 1px solid #b8b4a5; }
.ie-bar .addr { flex: 1; background: #fff; border: 1px solid #7f9db9; border-radius: 2px; padding: 3px 8px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ie-bar .go { }

/* how to buy steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 12px; margin-bottom: 12px; }
.step .n { counter-increment: s; flex: 0 0 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg,#3f8cf3,#1550c8); color: #fff; font-weight: bold; display: grid; place-items: center; }
.step .n::before { content: counter(s); }
.step .t { flex: 1; }
.step .t b { font-size: 13.5px; }

/* faq */
.faq-q { font-weight: bold; margin-top: 14px; color: #14458f; }
.faq-a { margin-top: 3px; }

/* progress marquee dialog for the fake defrag/format easter egg */
.dlg-mini { padding: 16px; text-align: center; }
.dlg-mini .barwrap { height: 18px; border: 1px solid #808080; background: #fff; margin: 12px 0; overflow: hidden; }
.dlg-mini .barfill { height: 100%; width: 0; background: repeating-linear-gradient(90deg,#2f7bf0 0 12px,#5a9bff 12px 16px); transition: width .2s; }

.ticker-strip { display: flex; gap: 26px; white-space: nowrap; overflow: hidden; padding: 4px 0; }
.ticker-move { display: inline-flex; gap: 26px; animation: tick 22s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CLIPSAQ terminal ---------- */
.clipsaq { background: #05070a; color: #d7e2ea; height: 100%; font-family: "Lucida Console","Courier New",monospace; display: flex; flex-direction: column; }
.clipsaq .cq-ticker { background: #000; border-bottom: 1px solid #143; overflow: hidden; white-space: nowrap; padding: 4px 0; font-size: 12px; }
.clipsaq .cq-ticker .move { display: inline-block; animation: tick 26s linear infinite; }
.clipsaq .cq-ticker .t { margin: 0 18px; }
.clipsaq .pad { padding: 12px 14px; overflow: auto; flex: 1; }
.clipsaq h1 { color: #35d07f; font-size: 16px; margin: 0 0 2px; letter-spacing: 1px; }
.clipsaq .sub { color: #5f7d70; font-size: 11px; margin-bottom: 12px; }
.clipsaq .cq-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 8px; margin-bottom: 12px; }
.clipsaq .cq-card { border: 1px solid #143427; background: #071310; border-radius: 4px; padding: 8px 10px; }
.clipsaq .cq-card .k { color: #5f7d70; font-size: 10px; text-transform: uppercase; }
.clipsaq .cq-card .v { font-size: 17px; font-weight: bold; margin-top: 2px; }
.clipsaq table { width: 100%; border-collapse: collapse; font-size: 12px; }
.clipsaq th { text-align: left; color: #35d07f; border-bottom: 1px solid #143427; padding: 5px 6px; }
.clipsaq td { border-bottom: 1px solid #0d1a14; padding: 5px 6px; }
.clipsaq .grn { color: #35d07f; } .clipsaq .red { color: #ff5c6c; } .clipsaq .amb { color: #f0b429; }
.clipsaq .take { margin-top: 12px; border-left: 3px solid #35d07f; padding: 8px 12px; background: #071310; color: #b9ccc2; font-size: 12px; line-height: 1.5; }
.clipsaq .take b { color: #35d07f; }

/* ---------- cmd.exe ---------- */
.cmd { background: #000; color: #c8c8c8; height: 100%; font-family: "Lucida Console","Courier New",monospace; font-size: 13px; padding: 6px 8px; overflow: auto; line-height: 1.45; }
.cmd .out { white-space: pre-wrap; word-break: break-word; }
.cmd .line { display: flex; }
.cmd .prompt { color: #c8c8c8; flex: 0 0 auto; white-space: pre; }
.cmd input { flex: 1; background: transparent; border: none; color: #c8c8c8; font-family: inherit; font-size: 13px; outline: none; caret-color: #c8c8c8; }
.cmd .err { color: #ff5c6c; } .cmd .ok { color: #35d07f; } .cmd .amb { color: #f0b429; }

/* ---------- Minesweeper ---------- */
.mine { background: var(--xp-face); padding: 8px; height: 100%; }
.mine .head { display: flex; align-items: center; justify-content: space-between; background: #c0c0c0; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 6px 10px; margin-bottom: 8px; }
.mine .lcd { background: #000; color: #ff2d2d; font-family: "Lucida Console",monospace; font-weight: bold; font-size: 20px; padding: 2px 8px; letter-spacing: 1px; min-width: 54px; text-align: center; }
.mine .face { width: 34px; height: 34px; font-size: 20px; display: grid; place-items: center; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.mine .face:active { border-color: #808080 #fff #fff #808080; }
.mine .grid { display: grid; gap: 0; background: #808080; border: 3px solid; border-color: #808080 #fff #fff #808080; width: fit-content; margin: 0 auto; }
.mine .cell { width: 24px; height: 24px; display: grid; place-items: center; font-weight: bold; font-size: 14px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; font-family: "Lucida Console",monospace; }
.mine .cell.rev { border: 1px solid #999; background: #c0c0c0; cursor: default; }
.mine .cell.mine-hit { background: #ff2d2d; }
.mine .cell.n1 { color: #0000ff; } .mine .cell.n2 { color: #008000; } .mine .cell.n3 { color: #ff0000; }
.mine .cell.n4 { color: #000080; } .mine .cell.n5 { color: #800000; } .mine .cell.n6 { color: #008080; }
.mine .cell.n7 { color: #000; } .mine .cell.n8 { color: #808080; }
.mine .msg { text-align: center; font-size: 12px; margin-top: 8px; color: #333; min-height: 16px; }

/* ---------- Task Manager ---------- */
.taskmgr { background: var(--xp-face); height: 100%; display: flex; flex-direction: column; }
.taskmgr .tm-tabs { display: flex; gap: 2px; padding: 6px 8px 0; }
.taskmgr .tm-tabs .tab { padding: 3px 12px; font-size: 12px; border: 1px solid #b0ad9e; border-bottom: none; border-radius: 4px 4px 0 0; background: #e4e1d3; }
.taskmgr .tm-tabs .tab.on { background: #fff; font-weight: bold; }
.taskmgr .tm-body { flex: 1; background: #fff; border: 1px solid #b0ad9e; margin: 0 8px; padding: 8px; overflow: auto; }
.taskmgr table { width: 100%; border-collapse: collapse; font-size: 12px; }
.taskmgr th { text-align: left; background: #ece9d8; border: 1px solid #d0ccbe; padding: 3px 8px; font-weight: normal; }
.taskmgr td { border-bottom: 1px solid #eee; padding: 3px 8px; }
.taskmgr tr.sel td { background: #316ac5; color: #fff; }
.taskmgr .gauges { display: flex; gap: 20px; padding: 10px 8px; }
.taskmgr .gauge { flex: 1; }
.taskmgr .gauge .lab { font-size: 11px; color: #333; margin-bottom: 3px; }
.taskmgr .gauge .track { height: 60px; border: 1px solid #808080; background: #000; position: relative; overflow: hidden; }
.taskmgr .gauge .fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg,#0f0,#3f3); }
.taskmgr .tm-foot { padding: 8px; text-align: right; }

/* ---------- BSOD ---------- */
#bsod { position: fixed; inset: 0; z-index: 99998; background: #0000aa; color: #fff; display: none; place-items: center; font-family: "Lucida Console","Courier New",monospace; padding: 40px; text-align: left; }
#bsod.show { display: grid; }
#bsod .bs { max-width: 720px; font-size: 15px; line-height: 1.7; }
#bsod .bs h2 { background: #c0c0c0; color: #0000aa; display: inline-block; padding: 2px 10px; font-size: 15px; margin: 0 0 20px; }
