/* Layout for the server windows on the homepage: cascaded like windows
   left open on an XP desktop, rather than a tidy aligned row. */
.windows-row {
  position: relative;
  min-height: 620px;
  margin-top: 20px;
}

.windows-row .window {
  position: absolute;
  width: 380px;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
}

.windows-row .window:hover {
  z-index: 10;
}

.windows-row .window:nth-of-type(1) {
  top: 10px;
  left: 20px;
  z-index: 2;
}

.windows-row .window:nth-of-type(2) {
  top: 10px;
  left: 440px;
  width: 300px;
  z-index: 3;
}

.windows-row .window:nth-of-type(3) {
  top: 150px;
  left: 440px;
  width: 720px;
  z-index: 1;
}

/* Stack plainly on narrow screens where there's no room to scatter */
@media (max-width: 800px) {
  .windows-row {
    min-height: 0;
  }

  .windows-row .window {
    position: static;
    width: 100% !important;
    margin-bottom: 24px;
  }

  .recycle-bin-body {
    flex-direction: column;
  }

  .recycle-bin-sidebar {
    width: auto;
    border-right: none;
    border-bottom: 1px solid #6f9bd6;
  }
}

.windows-row fieldset {
  margin-bottom: 12px;
}

.windows-row fieldset:last-child {
  margin-bottom: 0;
}

.windows-row .field-row-stacked label {
  font-weight: bold;
}

/* Buttons wrapping a link shouldn't look like a link - just a button */
button a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Recycle Bin: task-pane sidebar + Explorer-style details list, like XP's
   actual Recycle Bin folder view. */
.recycle-bin-body {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.recycle-bin-sidebar {
  flex-shrink: 0;
  width: 140px;
  background: linear-gradient(180deg, #d3e6fb, #a9cdf0 45%, #85b6e8);
  border-right: 1px solid #6f9bd6;
  padding: 8px;
  font-size: 11px;
}

.recycle-bin-sidebar-section + .recycle-bin-sidebar-section {
  margin-top: 14px;
}

.recycle-bin-sidebar-title {
  color: #0a246a;
  font-weight: bold;
  margin: 0 0 4px;
}

.recycle-bin-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recycle-bin-sidebar li {
  margin-bottom: 6px;
  color: #003399;
}

.recycle-bin-sidebar li i {
  width: 14px;
  margin-right: 4px;
  text-align: center;
}

.recycle-bin-main {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.recycle-bin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.recycle-bin-table th {
  text-align: left;
  background: #ece9d8;
  border-bottom: 1px solid #999;
  padding: 3px 6px;
  white-space: nowrap;
}

.recycle-bin-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #ece9d8;
}

.recycle-bin-table tbody tr:hover {
  background: #316ac5;
  color: #fff;
}

.recycle-bin-table tbody tr:hover a {
  color: #fff;
}

.recycle-bin-note {
  font-size: 11px;
  margin-top: 8px;
}

/* BSOD easter egg, hidden until #bsod is the URL target */
.bsod-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0000aa;
  color: #fff;
  font-family: "Perfect DOS VGA 437 Win", monospace;
  font-size: 18px;
  line-height: 1.7;
  padding: 60px 20px;
  overflow-y: auto;
}

.bsod-overlay:target {
  display: block;
}

.bsod-content {
  max-width: 700px;
  margin: 0 auto;
}

.bsod-dismiss {
  color: #fff;
  text-decoration: none;
}

.bsod-cursor {
  animation: bsod-blink 1s steps(1) infinite;
}

@keyframes bsod-blink {
  50% {
    opacity: 0;
  }
}
