/* Styles for the personal-site "programs": Explorer, Notepad, System Properties, Add or Remove
   Programs, the chart window, Outlook Express. Everything is Tahoma 11px, XP Luna colours. */

/* Tray icons */
#tray-net, #tray-vol { width: 16px; height: 16px; display: inline-block; }
#tray-net { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1' y='3' width='8' height='6' rx='1' fill='%23e8eef8' stroke='%23345'/><rect x='7' y='7' width='8' height='6' rx='1' fill='%23e8eef8' stroke='%23345'/><rect x='2.5' y='4.5' width='5' height='3' fill='%232f6fe0'/><rect x='8.5' y='8.5' width='5' height='3' fill='%232f6fe0'/></svg>") center / contain no-repeat; }
#tray-vol { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 6h3l4-3v10l-4-3H2z' fill='%23c8ccd4' stroke='%23345'/><path d='M11 5.5a4 4 0 0 1 0 5M12.8 3.5a6.5 6.5 0 0 1 0 9' stroke='%23345' fill='none'/></svg>") center / contain no-repeat; }

/* ---------- Explorer ---------- */
.explorer .window-body { background: #fff; }
.ex-menubar, .np-menubar { display: flex; gap: 2px; padding: 1px 2px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; font-size: 11px; user-select: none; }
.ex-menubar span, .np-menubar span { padding: 2px 6px; }
.ex-menubar span:hover, .np-menubar span:hover { background: #316ac5; color: #fff; }
.ex-flag { margin-left: auto; padding: 0 !important; } .ex-flag img { width: 18px; height: 18px; display: block; background: none; }
.ex-flag:hover { background: none !important; }
.ex-toolbar { display: flex; align-items: center; gap: 2px; padding: 3px 4px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; }
.ex-toolbar button, .oe-bar button { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; background: none; font: 11px Tahoma, sans-serif; cursor: default; }
.ex-toolbar button:hover, .oe-bar button:hover { border-color: #b7b7b7; background: #fdfcfb; }
.ex-toolbar img, .oe-bar img { width: 20px; height: 20px; }
.ex-sep { width: 1px; height: 20px; background: #c5c2b8; margin: 0 4px; display: inline-block; }
.ex-view { width: 26px; height: 26px; background: linear-gradient(#fff, #fff) 6px 6px / 5px 5px no-repeat, linear-gradient(#fff, #fff) 14px 6px / 5px 5px no-repeat, linear-gradient(#fff, #fff) 6px 14px / 5px 5px no-repeat, linear-gradient(#fff, #fff) 14px 14px / 5px 5px no-repeat, #3a6ea5 !important; }
.ex-address { display: flex; align-items: center; gap: 6px; padding: 2px 4px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; font-size: 11px; }
.ex-address > span { color: #555; }
.ex-addr { flex: 1; display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 3px; background: #fff; border: 1px solid #7f9db9; white-space: nowrap; overflow: hidden; }
.ex-addr img { width: 16px; height: 16px; }
.ex-go { display: flex; align-items: center; gap: 2px; border: 0; background: none; font: 11px Tahoma, sans-serif; }
.ex-go img { width: 18px; height: 18px; }
.ex-main { flex: 1; display: flex; min-height: 0; }
.ex-side { width: 200px; flex: 0 0 auto; padding: 12px 8px; overflow: auto; background: linear-gradient(180deg, #7aa7e8 0%, #6a9be3 100%); }
.ex-panel { margin-bottom: 12px; border-radius: 4px 4px 0 0; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ex-panel-h { padding: 4px 10px; font-weight: bold; color: #215dc6; background: linear-gradient(90deg, #fff, #c6d3f7); border-radius: 4px 4px 0 0; }
.ex-panel-b { padding: 8px 10px; background: #d6dff7; font-size: 11px; line-height: 1.6; }
.ex-panel-b a { display: flex; align-items: center; gap: 6px; color: #215dc6; text-decoration: none; }
.ex-panel-b a:hover { color: #428eff; text-decoration: underline; }
.ex-panel-b a img { width: 16px; height: 16px; flex: 0 0 auto; }
.ex-details { color: #000; }
.ex-files { flex: 1; overflow: auto; background: #fff; }
.ex-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.ex-table th { text-align: left; font-weight: normal; padding: 3px 6px; background: #fff; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #333; position: sticky; top: 0; }
.ex-table td { padding: 2px 6px; white-space: nowrap; cursor: default; }
.ex-table td:first-child { display: flex; align-items: center; gap: 5px; }
.ex-table td img { width: 16px; height: 16px; }
.ex-table td:nth-child(2), .ex-table td:nth-child(3) { color: #555; }
.ex-table tr.selected td { background: #316ac5; color: #fff; }
.ex-table tr.selected td:nth-child(n+2) { color: #e8eefc; }
.ex-table tr:hover:not(.selected) td { background: #eef3fc; }
.ex-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px; background: #ece9d8; border-top: 1px solid #d4d0c8; font-size: 11px; }
.ex-status-r { display: flex; align-items: center; gap: 4px; } .ex-status-r img { width: 16px; height: 16px; }

/* ---------- Notepad ---------- */
.notepad .window-body { background: #fff; }
.notepad textarea { flex: 1; border: 0; outline: none; resize: none; padding: 2px 4px; font: 13px "Lucida Console", Consolas, "Courier New", monospace; white-space: pre; overflow: auto; user-select: text; -webkit-user-select: text; }

/* ---------- System Properties ---------- */
.sysprops .window-body { background: #ece9d8; padding: 10px 10px 8px; }
.sp-tabs { display: flex; gap: 0; padding-left: 2px; }
.sp-tab { font: 11px Tahoma, sans-serif; padding: 3px 8px; margin-right: -1px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#fff, #f1efe2); cursor: default; position: relative; top: 1px; }
.sp-tab.active { background: #fcfcfe; border-top: 2px solid #ffc73c; padding-top: 4px; top: 0; z-index: 1; }
.sp-page { flex: 1; min-height: 0; overflow: auto; background: #fcfcfe; border: 1px solid #919b9c; padding: 14px; font-size: 11px; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.sp-btns { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; }
.sp-general .sp-logo { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #d4d0c8; font-size: 12px; }
.sp-general .sp-logo img { width: 56px; height: 56px; }
.sp-general .sp-logo b { font-size: 20px; font-family: "Franklin Gothic Medium", "Trebuchet MS", sans-serif; } .sp-general sup { color: #f78a24; font-style: italic; font-size: 12px; }
.sp-general dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 6px; margin: 0; }
.sp-general dt { font-weight: normal; } .sp-general dd { margin: 0; }
.sp-text p { margin: 0 0 10px; }
.sp-inline { width: 32px; height: 32px; vertical-align: middle; float: left; margin: 0 8px 4px 0; }
.sp-kv { border-collapse: collapse; margin-bottom: 12px; width: 100%; } .sp-kv td { padding: 3px 4px; vertical-align: top; } .sp-kv input { width: 100%; }
.sp-devices { list-style: none; padding: 0; margin: 0 0 12px; columns: 2; } .sp-devices li { display: flex; align-items: center; gap: 5px; padding: 1px 0; break-inside: avoid; } .sp-devices img { width: 16px; height: 16px; }
.sp-list { padding-left: 16px; margin: 0; } .sp-list li { margin-bottom: 4px; } .sp-list a { color: #0a246a; } .sp-list small { color: #666; }

/* ---------- Add or Remove Programs ---------- */
.arp .window-body { flex-direction: row; background: #fff; }
.arp-side { width: 110px; flex: 0 0 auto; background: linear-gradient(180deg, #2a62d4, #2a62d4 60%, #4b85e9); padding: 12px 4px; display: flex; flex-direction: column; gap: 14px; }
.arp-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid transparent; border-radius: 4px; background: none; color: #fff; font: 11px Tahoma, sans-serif; text-align: center; cursor: default; }
.arp-nav img { width: 32px; height: 32px; }
.arp-nav.active, .arp-nav:hover { background: #fff; color: #000; border-color: #8aa; }
.arp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.arp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; font-size: 11px; }
.arp-head select { height: 20px; }
.arp-list { flex: 1; overflow: auto; margin: 0 12px; border: 1px solid #7f9db9; background: #fff; }
.arp-item { border-bottom: 1px solid #f0f0f0; }
.arp-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 11px; cursor: default; }
.arp-row img { width: 32px; height: 32px; }
.arp-row b { flex: 1; font-weight: normal; }
.arp-item.open .arp-row { background: #316ac5; color: #fff; } .arp-item.open .arp-row b { font-weight: bold; }
.arp-size { color: #555; } .arp-item.open .arp-size { color: #dfe8fb; }
.arp-detail { display: none; padding: 8px 12px 12px 48px; font-size: 11px; line-height: 1.5; background: #d6dff7; }
.arp-item.open .arp-detail { display: block; }
.arp-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; } .arp-actions span { flex: 1; color: #333; }
.arp-foot { padding: 8px 12px; font-size: 11px; color: #555; }

/* ---------- Charts ---------- */
.viz .window-body { background: #fff; overflow: auto; }
.viz-wrap { padding: 10px 14px 14px; font-size: 11px; line-height: 1.5; }
.viz-intro { margin: 0 0 8px; } .viz-intro a { color: #0a246a; }
.viz-loading { padding: 40px; text-align: center; color: #666; }
.viz-plot { width: 100%; }

/* ---------- Windows Media Player ---------- */
.wmp .window-body { background: #ece9d8; }
.wmp-body { padding: 10px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; }
.wmp-body audio { width: 100%; height: 32px; }
.wmp-body a { color: #0a246a; }

/* ---------- Outlook Express ---------- */
.oe .window-body { background: #ece9d8; }
.oe-bar { display: flex; align-items: center; gap: 2px; padding: 3px 4px; border-bottom: 1px solid #d4d0c8; }
.oe-fields { padding: 4px 8px; border-bottom: 1px solid #d4d0c8; background: #fff; }
.oe-fields div { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 11px; }
.oe-fields label { width: 60px; text-align: right; color: #333; } .oe-fields input { flex: 1; border-color: #ccc; }
.oe iframe { background: #fff; }
