/*

  WIN95.CSS (Clean, Deduped, Win98 Start Menu)
  Based on https://github.com/AlexBSoft/win95.css (MIT)
  Customized for your React portfolio

*/

/* ===== Base ===== */
/* html { position: relative; min-height: 100%; } */

body {
  font-family: "MS Sans Serif", Tahoma, Verdana, Segoe, sans-serif;
  background: teal;
  color: white;
  /*padding-bottom: 28px; /* space for taskbar */
  user-select: none;
}

/* Optional cloud bg */
.bg-cloud { background-image: url(clouds2.jpg); color: #212529; }

a { color: #2d49eb; }

/* ===== Header (video hero) ===== */
header {
  position: relative;
  background-color: black;
  height: 100dvh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}
header video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto; z-index: 0;
  transform: translate(-50%, -50%);
}
header .container { position: relative; z-index: 2; }

/* ===== Scrollbar (WebKit) ===== */
::-webkit-scrollbar { width: 20px;}
::-webkit-scrollbar-button:end:increment,
::-webkit-scrollbar-button:start:decrement { display: block; width: 20px; height: 20px; }
::-webkit-scrollbar-button:vertical:end:decrement,
::-webkit-scrollbar-button:vertical:start:increment { display: none; }
::-webkit-scrollbar-button:vertical:increment {
  width: 20px; height: 20px; margin: 1px 1px 1px 10px;
  background: silver url(combo.png) no-repeat 50%;
  border: 2px outset #fff; transform: rotateY(-90deg);
}
::-webkit-scrollbar-button:vertical:decrement {
  width: 20px; height: 20px; margin: 1px 1px 1px 10px;
  background: silver url(comboup.png) no-repeat 50%;
  border: 2px outset #fff; transform: rotateY(180deg);
}
::-webkit-scrollbar-track { background-image: url(background.bmp); }
::-webkit-scrollbar-thumb:vertical { border: 2px outset #fff; height: 40px; background-color: silver; }
::-webkit-scrollbar-corner:vertical { background-color: #000; }
::-webkit-scrollbar-button:horizontal:end:decrement,
::-webkit-scrollbar-button:horizontal:start:increment { display: none; }
::-webkit-scrollbar-button:horizontal:increment,
::-webkit-scrollbar-button:horizontal:decrement {
  width: 20px; height: 20px; margin: 1px 1px 1px 10px; border: 2px outset #fff;
}
::-webkit-scrollbar-button:horizontal:increment {
  background: silver url(comboright.png) no-repeat 50%; transform: rotateY(-90deg);
}
::-webkit-scrollbar-button:horizontal:decrement {
  background: silver url(comboleft.png) no-repeat 50%; transform: rotateY(180deg);
}
::-webkit-scrollbar-track-piece { margin: 1px; }
::-webkit-scrollbar-thumb:horizontal { border: 2px outset #fff; height: 40px; background-color: silver; }

/* ===== Buttons ===== */
.btn {
  border-width: 2px; border-style: outset; border-color: buttonface;
  border-right-color: #424242; border-bottom-color: #424242;
  background: silver; color: black; padding: 2px 5px 4px; border-radius: 1px;
}
.btn:hover, .btn:focus, .btn:active {
  border: 2px inset #fff !important;
  background: url(background.bmp);
  color: #424242; box-shadow: -1px -1px #000 !important; outline: 0 !important;
}
.btn-primary { padding-left: 8px; padding-right: 8px; }
button:focus { outline: 1px dotted; }
.btn.disabled, .btn:disabled {
  cursor: default; background-color: silver; border-style: outset;
  border-color: buttonface; border-right-color: #424242; border-bottom-color: #424242;
  color: grey; text-shadow: 1px 1px #fff;
}

/* ===== Cards ===== */
.card {
  border: 2px solid; border-bottom-color: #424242; border-right-color: #424242;
  border-left-color: #fff; border-top-color: #fff;
  background: silver; color: #212529; font-size: 15px;
}
.card.square, .card.square .card-header { border-radius: 0; }
.card.w95 .card-header { background: #08216b; }
.card-header {
  background: linear-gradient(to right, #1a0094, #1a0094);
  color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-top: 2px; padding-bottom: 1px; text-align: left;
}
.card-header.icon { padding-left: 4px; }
.header-inactive { background: gray !important; }

.win98-inset-header {
  background: #808080;
  color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-top: 2px; padding-bottom: 1px; text-align: center;
}





/* For Firefox */
.card-body {
  scrollbar-width: thin;
  scrollbar-color: silver #c0c0c0;
}

/* ===== List Groups ===== */
.list-group {
  border: 2px solid; border-bottom-color: #424242; border-right-color: #424242;
  border-left-color: #fff; border-top-color: #fff;
  background: silver; color: #212529;
}
.list-group-item { position: relative; display: block; background: transparent; color: #212529; }
.list-group-item-primary { color: white; background: linear-gradient(to right, #08216b, #a5cef7); }
.list-group-item-action:hover { color: #08216b; }

/* ===== Navbar ===== */
.navbar-95 {
  background: silver; margin: 0; border: px outset #fff; min-height: 50px; padding: 0 6px; color: #212529;
}
.navbar-brand { color: #212529; padding: 0 6px; }
.nav-link { text-decoration: none; display: inline-block; padding: 0 9px; color: #212529; }
.dropdown-menu {
  display: none; min-width: 119px; padding: 0 0 2px; margin-left: 1px; font-size: 15px; list-style: none;
  background: silver; border: 1.8px outset #fff; border-radius: 0; box-shadow: 1.5px 1.5px #000;
}
.dropdown-menu.show { display: block; }     /* BS5 adds .show */
.dropdown-item { padding: 2px 5px 1px 5px; }
.dropdown-item:hover { color: #08216b; }
.navbar-light .navbar-toggler.collapsed .navbar-toggler-icon { width: 32px; background: url(icons/directory_closed_cool-5.png); }
.navbar-light .navbar-toggler .navbar-toggler-icon { width: 32px; background: url(icons/directory_open_cool-5.png); }
.navbar-toggler { width: auto; }

/* Win98-style inset box */
.win98-inset {
  background: #dcdcdc;
  border: 2px inset #d5d5d5;
  padding: 0.5rem;
  color: #212529;
}

/* Optional: header variant */
.win98-inset-header {
  background: #808080;
  color: #fff;
  padding: 0.5rem;
  border: 2px inset #d5d5d5;
  text-align: center;
}

/* Force project list links to look like classic blue hyperlinks */
.win98-inset a {
  color: #2d49eb !important;   /* Win98 blue */
  text-decoration: underline;
}

.win98-inset a:hover {
  color: #0000ee;              /* darker blue hover */
  text-decoration: underline;
}

/* App.css */
.win98-inset span:first-child {
  color: #2d49eb;             /* classic Win98 blue */
  text-decoration: underline; /* underline like a link */
}

.win98-inset:hover span:first-child {
  color: #0000ee;             /* darker blue on hover */
}




/* =======================================================================
   Taskbar & Start Menu (Windows 98 style)
   ======================================================================= */

/* Taskbar */
.taskbar {
  cursor: default;
  background-color: silver;
  padding: 5px;
  border-top: 2px outset #fff;
  z-index: 228;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Start area anchors the menu to the button */
.start-area { position: relative; display: flex; align-items: center; }

/* Hide checkbox */
#start-button-input { display: none; }

/* Start button (separate from task buttons) */
.start-button {
  cursor: default;
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px outset #fff; background: silver;
  padding: 6px 10px 4px 8px;
  box-shadow: 2px 2px #000; margin-bottom: 2px;
  font-size: 15px; color: #000; font-weight: 600;
}
.start-button:active { border: 2px inset #fff; }

/* Silver separator bar next to Start */
.taskbar__separator {
  width: 1px; height: 30px; margin: 0 10px; background: silver;
  border-left: 2px solid #fff; border-top: 2px solid #fff;
  border-right: 2px solid #7d7d7d; border-bottom: 2px solid #7d7d7d;
  box-shadow: 1px 1px #000;
}

/* Task buttons */
.task-buttons { display: flex; align-items: center; gap: 7px; }
.task-buttons .task-button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px outset #fff; background: silver;
  padding: 6px 10px 4px 8px; box-shadow: 2px 2px #000;
  font-size: 15px; color: #000;
}
.task-buttons .task-button:active { border: 2px inset #fff; }

/* Clock */
.taskbar .time {
  color: #212529;
  margin-top: 2px;
  text-align: right;
  font-size: 17px;
  margin-right: 6px;
}

/* ===== Win98 Start Menu (anchored to the Start button) ===== */
#start-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px); /* above the taskbar */
  width: 23rem;
  min-height: 10rem;
  background: #c0c0c0;
  padding: 6px 0;
  z-index: 99999;
  display: none;           /* keep ONLY this; remove any later display:flex */
  border: 2px solid;
  border-bottom-color: #424242; border-right-color: #424242;
  border-left-color: #fff; border-top-color: silver;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset  1px  1px 0 #fff,
    inset -3px -3px 0 #c0c0c0,
    inset  3px  3px 0 #c0c0c0;
}


/* reveal menu when the checkbox is checked */
#start-button-input:checked ~ #start-menu {
  display: flex;
}

/* Blue vertical rail (participates in flex; no overlap) */
#windows-start-menu-blue {
  position: static;            /* <-- important: not absolute */
  flex: 0 0 56px;              /* rail width */
  background: #0137ad;
  color: #fff;
  display: flex;
  align-items: flex-end;       /* text near the bottom, Win98 style */
  justify-content: center;
  padding: .4rem .2rem;
  border-right: 1px solid #000;
  box-shadow: inset -1px 0 0 #808080, inset 1px 0 0 #fff;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);   /* bottom-to-top reading */
  font: 900 1.05rem "Arial Black", Arial, sans-serif;
}
#windows-start-menu-blue span { font-weight: 400; font-family: Arial, sans-serif; }

/* List fills the rest and items are full width */
.start-menu__list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 4px;
}
.start-menu__item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin: 0;                   /* no side gaps */
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent; /* avoids layout shift on hover */
}
.start-menu__item:hover {
  background: #0c1b98;
  color: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
}
.start-menu__item img { width: 25px; height: 25px; }

/* Divider (full width, no rail math needed) */
.start-menu__line {
  height: 8px;
  margin: 6px 4px;
  position: relative;
}
.start-menu__line::before,
.start-menu__line::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
}
.start-menu__line::before { top: 2px; background: #808080; }
.start-menu__line::after  { top: 4px; background: #fff; }

/* Arrow indicator for submenu */
.start-menu__item--has-sub { position: relative; }
.start-menu__item--has-sub::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #000;
}
.start-menu__item--has-sub:hover::after { border-left-color: #fff; }

/* Submenu (absolute, no flex) */
/* Wrapper <li> needs positioning so the submenu can anchor */
.start-menu__li--has-sub { position: relative; }

/* Flyout submenu styling (matches main menu chrome) */
.start-menu__submenu {
  position: absolute;
  top: -4px;                    /* aligns nicely with parent row */
  left: calc(100% - 2px);       /* tiny overlap for seamless edge */
  min-width: 18rem;
  background: #c0c0c0;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  border: 2px solid;
  border-bottom-color: #424242; border-right-color: #424242;
  border-left-color: #fff;      border-top-color: silver;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset  1px  1px 0 #fff,
    2px 2px 0 rgba(0,0,0,.25);
  display: none;
  z-index: 100000;              /* above the main menu */
}

/* Show submenu on hover or keyboard focus within */
.start-menu__li--has-sub:hover > .start-menu__submenu,
.start-menu__li--has-sub:focus-within > .start-menu__submenu {
  display: block;
}

/* Submenu items reuse your .start-menu__item look */
.start-menu__submenu .start-menu__item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin: 0;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
}

.start-menu__submenu .start-menu__item:hover,
.start-menu__submenu .start-menu__item:focus {
  background: #0c1b98;
  color: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
  outline: none;
}




/* =======================================================================
   Forms / Inputs
   ======================================================================= */
.form-95 {
  width: 100%; border: 2px inset #d5d5d5; color: #424242; background: #fff;
  box-shadow: -1px -1px 0 0 #828282; margin-top: 4px; padding-left: 2px;
}
.bootstrap-select,
textarea:focus, textarea.form-control:focus,
input.form-control:focus, input[type=text]:focus, input[type=password]:focus,
input[type=email]:focus, input[type=number]:focus, [type=text].form-control:focus,
[type=password].form-control:focus, [type=email].form-control:focus,
[type=tel].form-control:focus, [contenteditable].form-control:focus { outline: 0 !important; }

input[type="radio"], input[type="checkbox"] { position: absolute; left: -9999px; }

.form-check-label { margin-left: 6px; }
.form-check-label::before, .form-check-label::after { content: ''; position: absolute; top: 0; left: 0; }
input[type="radio"] + .form-check-label::before,
input[type="radio"] + .form-check-label::after { border-radius: 50%; }
.form-check-label::before {
  height: 20px; width: 20px; top: 3px; padding-right: 2px;
  border: 2px inset #d5d5d5; background: white; box-shadow: -1px -1px 0 0 #828282;
}
input[type="radio"] + .form-check-label::after {
  display: none; width: 8px; height: 8px; margin: 6px; top: 3px; background: black;
}
input[type="checkbox"] + .form-check-label::after {
  display: none; width: 12px; height: 12px; margin: 4px; top: 3px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
input:checked + .form-check-label::after { display: block; }

/* =======================================================================
   Progress
   ======================================================================= */
.progress {
  height: 1rem; overflow: hidden; font-size: .75rem; background-color: silver;
  border-radius: 0; border: 1px inset #d5d5d5; color: #424242;
}
.progress-bar {
  display: flex; justify-content: center; color: #fff; text-align: center;
  background-color: #1a0094; transition: width .6s ease;
}
.progress-bar-blocks {
  background-image: linear-gradient(90deg, transparent 75%, #d5d5d5 25%);
  background-size: 1rem 1rem;
}

/* =======================================================================
   Tabs
   ======================================================================= */
.tab-content {
  background: silver; border: 2px solid;
  border-bottom-color: #424242; border-right-color: #424242;
  border-left-color: #fff; border-top-color: silver;
  padding: 1rem 1.4rem;
}
.nav-tabs { border-bottom: 2px solid white; }
.nav-tabs .nav-item {
  position: relative; margin-bottom: 0; background: #c0c0c0; color: black;
  border-top-left-radius: 4px; border-top-right-radius: 4px; border-right: 1px solid #5A5A5A;
  box-sizing: border-box;
}
.nav-tabs .nav-item .nav-link { color: black; padding: .2rem 1.8rem; box-sizing: border-box; transform: none; }
.nav-tabs .nav-item .nav-link.active { position: relative; background: #c0c0c0; font-weight: bold;}
.nav-tabs .nav-item:not(:first-child) .nav-link.active { border-left: 1px solid #5A5A5A; }
.nav-tabs .nav-item:first-child { border-left: 2px solid white; }
.nav-tabs .nav-item .nav-link.active:after {
  content: ''; display: block; width: 100%; height: 2px; position: absolute; left: 0; bottom: -2px; background: #c0c0c0;
}
.nav-tabs .nav-link { border: 0; padding: 1rem 1rem; }

/* small subtitle inside tabs */
.tab-subtitle {
  margin: 0 0 .35rem 0;
  font-weight: 700;
  font-size: .95rem;
}

/* tiny retro badges */
.badge-95 {
  display: inline-block;
  padding: 2px 8px 3px;
  margin: 2px 4px 2px 0;
  background: #e6e6e6;
  border: 1px solid #7d7d7d;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #c0c0c0;
  font-size: 13px;
  line-height: 1.2;
  color: #000;
}
.chip-wrap { display: flex; flex-wrap: wrap; }

/* key-value list */
.kv { display: grid; gap: 6px; }
.kv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
}
.kv-key {
  font-weight: 700;
  padding-right: 8px;
}
.kv-val a { color: inherit; text-decoration: underline; }

/* compact buttons row */
.social-buttons .btn.btn-sm {
  padding: 4px 10px 5px;
  font-size: 15px;
  font-weight: bold;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 16px;
  background: #c0c0c0; /* Win98 silver */
  padding: 8px;
  border: 2px inset #d5d5d5;
  color: #424242;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 30px;
}
.contact-list a {
  color: #000; /* black text for links */
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}


/* =======================================================================
   Modal
   ======================================================================= */
.modal-content {
  box-shadow: 1px 1px 0 0 #424242; border: 1px solid #fff;
  border-right-color: #848484; border-bottom-color: #848484;
  background: silver; padding: 2px;
}
.modal-header {
  height: 32px; background: linear-gradient(to right, #08216b, #a5cef7) !important;
  color: white; padding: 0 6px;
}
.modal-header .btn { margin-top: 5px; padding-bottom: 10px; height: 22px; width: 22px; }
.modal-header .btn span { position: absolute; top: 6px; right: 14px; }
.modal-title { padding-top: 2px; padding-bottom: 1px; }
.modal-footer { padding: 6px; }

/* =======================================================================
   Tables
   ======================================================================= */
.table { background: white; border-color: #c0c0c0; }
.table-bordered { border: 1px solid #c0c0c0; }
.table-bordered td, .table-bordered th { border: 1px solid #c0c0c0; }
.table td, .table th { padding: .75rem; vertical-align: top; border-top: 1px solid #c0c0c0; }

/* =======================================================================
   Icons
   ======================================================================= */
.icon-16 { margin-bottom: 2px; max-height: 16px; }
.icon-16-4 { margin-bottom: 4px; max-height: 16px; }




/* Start menu visibility controlled by JS (no checkbox) */
.start-area #start-menu { display: none; }
.start-area #start-menu.open { display: flex; } /* or 'block' if you prefer; flex is fine for your rail+list */




/* ===== Win98 window controls (min/max/close) ===== */
.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  /* Win98 chrome */
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px outset #fff;
  background: silver;
  box-shadow: 1px 1px #000;
  cursor: default;
  line-height: 0;
}

.title-bar-controls button:active {
  border: 2px inset #fff;
  box-shadow: none;
}

.title-bar-controls button:focus {
  outline: none;
}

/* Icons (inline SVG like 98.css uses) */
.title-bar-controls button[aria-label="Minimize"] {
  background-repeat: no-repeat;
  background-position: bottom 2px left 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='2' viewBox='0 0 8 2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='8' height='2' fill='%23000'/%3E%3C/svg%3E");
}

.title-bar-controls button[aria-label="Maximize"],
.title-bar-controls button.maximize {
  background-repeat: no-repeat;
  background-position: top 2px left 3px;
  background-image: url("/assets/icons/maximize.svg"); /* relative to public/ in React */
}

.title-bar-controls button[aria-label="Close"],
.title-bar-controls button.close {
  margin-left: 2px;
  background-repeat: no-repeat;
  background-position: top 2px left 4px;
  background-image: url("/assets/icons/close.svg");
}


/* Optional: tighter header height like Win98 */
.card-header .title-bar-controls button { height: 18px; width: 18px; }




/* --- Win98 group box (fieldset style) --- */
.w98-group {
  position: relative;
  margin: 10px 0 14px;
  padding: 14px 12px 10px;
  background: #c0c0c0;            /* Win98 silver */
  border: 2px solid;
  border-left-color: #fff;
  border-top-color: #fff;
  border-right-color: #424242;
  border-bottom-color: #424242;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset  1px  1px 0 #fff;
  color: #000;                     /* black text */
}

.w98-group-title {
  position: absolute;
  top: -10px;
  left: 10px;
  padding: 0 6px;
  background: #c0c0c0;
  font-weight: 700;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  color: #000;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kv-group {
  border-bottom-color: #424242;
  border-right-color: #424242;
  border-left-color: #fff;
  border-top-color: #fff;
  background: silver;
  padding: 6px 8px;
}

.kv-title {
  font-weight: bold;
  margin-bottom: 4px;
  /* background: linear-gradient(to right, #08216b, #a5cef7); */
  color: black;
  padding: 3px 4px;
  font-size: 16px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge-95 {
  border: 2px outset #fff;
  background: silver;
  padding: 2px 6px;
  font-size: 13px;
  color: black;
  box-shadow: 2px 2px #000;
}

.kv-row {
  display: contents; /* Keeps key–value on same grid row */
}

.kv-key {
  justify-self: end;
  align-self: center;
  padding: 2px 6px;
  background: #e0e0e0;
  border: 1px solid #9a9a9a;
  box-shadow:
    inset -1px -1px 0 #fff,
    inset  1px  1px 0 #808080;
  font-weight: 600;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
}

.kv-val {
  padding: 0px 6px;
  /* background: #fff;
  border: 2px inset #d5d5d5; */
  min-height: 24px;
  display: flex;
  align-items: center;
}


/* Win98-style project list items */
.projects-list li {
  display: block;
  align-items: left;
  gap: 8px;
  padding: 10px 10px;
  border: 1px solid transparent;
  cursor: default;
  font-size: 14x;
  user-select: none;
}

/* Hover look: blue background, white text, inset border */
.projects-list li:hover {
  background: #0c1b98;  /* deep Win98 blue */
  color: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #fff;
  cursor: pointer;
  padding: 10px 10px;
}

/* Custom Win95-style scrollbar for project windows */
.card-body {
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd #e0e0e0; /* thumb, track for Firefox */
}

.card-body::-webkit-scrollbar {
  width: 18px;
  background: #e0e0e0;
  border-radius: 0;
}

.card-body::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border: 2px outset #fff;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
  min-height: 40px;
  border-radius: 0;
}

.card-body::-webkit-scrollbar-thumb:hover {
  background: #7da6f7;
  border: 2px inset #fff;
}

.card-body::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  border-radius: 0;
}

.card-body::-webkit-scrollbar-corner {
  background: #000;
}

.narrow-box {
  max-width: 720px;   /* tweak: 640px / 680px / 560px */
  margin-left: auto;
  margin-right: auto;
}



/* =======================================================================
   Win95-style project window
   ======================================================================= */

.window95, 
.window95 * {
  box-sizing: border-box; /* include borders in height/width */
}

/* Win95-style project window (same layout as .card, just themed) */
.window95 {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 6px solid #bdbdbd; /* Win95 blue header */
  box-shadow:     
    3px 3px 0 #0006,      /* top/left highlight */
    3px 3px 0 #0006,   /* bottom/right shadow */
    8px 8px 12px #0006; 
  color: #000;
  border-radius: 0;
  max-height: 90vh; /* or a fixed height if you prefer */
  overflow: hidden;
}

/* Header styled like card-header, but Win95 gray */
.window95-header {
  background: #1a0094;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: #fff;
  /* remove the heavy bottom border that visually “cuts” the side borders */
  border-bottom: 6px solid #bdbdbd; /* Win95 blue header */
  min-height: 32px; /* drag handle height */
}

.window95-body {
  background: #fff;
  flex: 1 1 auto;      /* fill remaining height */
  min-height: 0;       /* IMPORTANT: allow flex child to shrink for scrolling */
  overflow-y: auto !important;    /* your Win95 scrollbar will show when needed */
  padding: 8px;
  /* optional: stop margin-collapse making the content poke past borders */
  display: flex;
  flex-direction: column;
  border-top: 3px solid #3a3939; /* subtle border */
  border-left: 3px solid #3a3939;
  scrollbar-width: thin;
  scrollbar-color: #808080 #e0e0e0;
  max-height: 100%;
}

.window95-body > *:first-child {
  margin-top: 0 !important;
}
.window95-body > *:last-child {
  margin-bottom: 0 !important;
}


.window95-body::-webkit-scrollbar {
  width: 18px;
  background: #e0e0e0;
}

.window95-body::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border: 2px outset #fff;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;

}

.window95-body::-webkit-scrollbar-thumb:hover {
  background: #7da6f7;
  border: 2px inset #fff;
}

.window95-body::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
}
