/* TSOS.css */
/* This file was created with help from AI Assistants. CSS is hard :> */
body {
  background: #000000;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-weight: normal;
  font-style: normal;
  position: relative;
  overflow: hidden;
}

/* Stage container keeps a fixed aspect ratio so framing is consistent */
#stage {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 1920px;  /* fixed stage size */
  height: 1080px; /* fixed stage size */
  background: #909193 url(distrib/images/background.png) no-repeat center center;
  background-size: cover;
  overflow: hidden;
  z-index: 0;
}

/* Subtle ceiling light flicker behind monitors */
#ambientCeilingLight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% -20%,
    rgba(255, 245, 200, 0.22) 0%,
    rgba(255, 245, 200, 0.12) 20%,
    rgba(255, 245, 200, 0.06) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  mix-blend-mode: screen;
  z-index: 1; /* behind content and frame overlay */
  animation: ceiling-flicker 5.5s infinite steps(60) alternate,
             ceiling-breathe 8s ease-in-out infinite;
  filter: blur(0.8px) brightness(1.05);
}

@keyframes ceiling-flicker {
  0%   { opacity: 0.25; }
  4%   { opacity: 0.20; }
  6%   { opacity: 0.28; }
  9%   { opacity: 0.18; }
  12%  { opacity: 0.30; }
  20%  { opacity: 0.22; }
  23%  { opacity: 0.27; }
  30%  { opacity: 0.16; }
  33%  { opacity: 0.32; }
  45%  { opacity: 0.24; }
  55%  { opacity: 0.29; }
  60%  { opacity: 0.21; }
  72%  { opacity: 0.26; }
  80%  { opacity: 0.19; }
  86%  { opacity: 0.31; }
  92%  { opacity: 0.23; }
  100% { opacity: 0.27; }
}

@keyframes ceiling-breathe {
  0%   { transform: translateY(0px) scale(1); filter: blur(0.8px); }
  50%  { transform: translateY(1px) scale(1.02); filter: blur(1px); }
  100% { transform: translateY(0px) scale(1); filter: blur(0.8px); }
}

/* Monitor frames overlay - appears above everything inside stage */
#stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(distrib/images/monitors_transparent.png) no-repeat center center;
  background-size: cover;
  pointer-events: none;
  z-index: 100;
  filter: brightness(0.8) contrast(1.1);
}


h1 {
  color: black;
  font-size: 24pt;
  font-weight: normal;
  font-style: normal;
  border-bottom: 1px solid black;
}

h2 {
  color: black;
  font-size: 20pt;
  font-weight: normal;
  font-style: normal;
}

h3 {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 16pt;
  font-weight: normal;
  font-style: normal;
}

/* Ensure full height layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Main layout container */
#divMain {
  display: flex;
  width: 100%;
  height: 100%; /* fill the stage, not the viewport */
  position: absolute; /* positioned inside #stage */
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 50;
  overflow: hidden;
}

/* Main console on the left (main monitor) */
#divConsole {
  position: absolute;
  left: 15.5%;
  top: 21%;
  width: 32%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  animation: crt-flicker 0.1s infinite linear alternate, crt-static 0.05s infinite;
  overflow: hidden;
}

/* BSOD state: flatten console visuals and show solid blue */
#divConsole.bsod {
  background: #0000AA !important;
  animation: none !important;
}

/* During BSOD, lift overlays above the canvas so effects cover blue fill */
#divConsole.bsod .film-grain-overlay {
  z-index: 40 !important;
  mix-blend-mode: screen !important;
  filter: contrast(1.15) !important;
}

#divConsole.bsod .blur-overlay {
  z-index: 45 !important;
  mix-blend-mode: multiply !important;
}

/* CRT scanlines for the console background */
#divConsole::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 1px,
      rgba(0, 0, 0, 0.08) 1px,
      rgba(0, 0, 0, 0.08) 2px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.2) 100%
    );
  pointer-events: none;
  animation: scanlines 0.06s linear infinite;
  border-radius: 8px;
  z-index: 1;
}

/* Phosphor glow for console background */
#divConsole::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 0, 0.03) 0%,
    rgba(0, 255, 0, 0.01) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: phosphor-glow 2s ease-in-out infinite alternate;
  border-radius: 12px;
  z-index: 2;
}

#display {
  background: #000000;
  border: none;
  outline: none;
  cursor: default;
  width: 93%;
  height: 83%;
  max-width: 90%;
  max-height: 87%;
  position: relative;
  overflow: hidden;
  opacity: 1;
  z-index: 10;
  /* Push terminal content down to create room for status bar */
  margin-top: 85px;
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-wave 3s infinite ease-in-out,
             crt-jitter 0.3s infinite linear,
             phosphor-glow 2s ease-in-out infinite alternate;
}

#display:focus {
  outline: none;
}

/* Film grain overlay */
.film-grain-overlay {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: screen;
  border-radius: 4px;
  /* Apply green hue to match terminal aesthetic */
  filter: hue-rotate(120deg) saturate(1.5) contrast(1.2);
}

/* Blur overlay */
.blur-overlay {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
  z-index: 25;
  mix-blend-mode: multiply;
  border-radius: 4px;
  filter: blur(2px) brightness(0.8);
}

/* Right panel film grain overlay */
.film-grain-overlay-right {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: screen;
  border-radius: 4px;
  /* Apply green hue to match terminal aesthetic */
  filter: hue-rotate(120deg) saturate(1.5) contrast(1.2);
}

/* Right panel blur overlay */
.blur-overlay-right {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 25;
  mix-blend-mode: multiply;
  border-radius: 4px;
  filter: blur(2px) brightness(0.8);
}

/* CRT Flicker effect for the terminal */
@keyframes crt-flicker {
  0% { opacity: 1; }
  98% { opacity: 1; }
  99% { opacity: 0.98; }
  100% { opacity: 0.99; }
}

/* CRT static/noise animation */
@keyframes crt-static {
  0% { 
    filter: contrast(1.05) brightness(1) saturate(1.1);
    background-position: 0px 0px;
  }
  20% { 
    filter: contrast(0.95) brightness(1.02) saturate(0.9);
    background-position: -1px 1px;
  }
  40% { 
    filter: contrast(1.02) brightness(0.98) saturate(1.05);
    background-position: 1px -1px;
  }
  60% { 
    filter: contrast(0.98) brightness(1.01) saturate(0.95);
    background-position: 0px 2px;
  }
  80% { 
    filter: contrast(1.03) brightness(0.99) saturate(1.02);
    background-position: -2px 0px;
  }
  100% { 
    filter: contrast(1.05) brightness(1) saturate(1.1);
    background-position: 0px 0px;
  }
}



@keyframes phosphor-glow {
  0% { opacity: 0.55; }
  100% { opacity: .85; }
}

@keyframes minimal-phosphor-glow {
  0% { opacity: 0.80; }
  100% { opacity: 0.85; }
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

/* Simple wave effect */
@keyframes crt-wave {
  0% { transform: translateX(0px); }
  25% { transform: translateX(0.5px); }
  50% { transform: translateX(-0.5px); }
  75% { transform: translateX(0.3px); }
  100% { transform: translateX(0px); }
}

/* Simple jitter effect */
@keyframes crt-jitter {
  0% { transform: translate(0px, 0px); }
  10% { transform: translate(-0.5px, -0.5px); }
  20% { transform: translate(0.5px, 0px); }
  30% { transform: translate(0px, 0.5px); }
  40% { transform: translate(-0.5px, 0px); }
  50% { transform: translate(0px, -0.5px); }
  60% { transform: translate(0.5px, 0.5px); }
  70% { transform: translate(-0.5px, 0px); }
  80% { transform: translate(0px, 0px); }
  90% { transform: translate(0.5px, -0.5px); }
  100% { transform: translate(0px, 0px); }
}

/* Gentler wave effect for right monitor */
@keyframes crt-wave-gentle {
  0% { transform: translateX(0px); }
  25% { transform: translateX(0.2px); }
  50% { transform: translateX(-0.2px); }
  75% { transform: translateX(0.1px); }
  100% { transform: translateX(0px); }
}

/* Gentle jitter effect for right monitor */
@keyframes crt-jitter-gentle {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(-0.1px, -0.1px); }
  50% { transform: translate(0.1px, 0px); }
  75% { transform: translate(0px, 0.1px); }
  100% { transform: translate(0px, 0px); }
}


/* Right panel for controls and text areas */
#rightPanel {
  position: absolute;
  right: 16%;
  top: 34%;
  width: 28%;
  height: 36%;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  background: 
    radial-gradient(ellipse, rgba(10, 15, 10, 0.55) 0%, rgba(5, 10, 5, 0.55) 35%, rgba(2, 5, 2, 0.55) 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(0, 100, 0, 0.01) 1px,
      transparent 2px
    );
  border-radius: 8px;
  box-sizing: border-box;
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-wave 3s infinite ease-in-out,
             crt-jitter-gentle 0.3s infinite linear;
  overflow: visible;
  z-index: 50;
}

/* Solid black background for right monitor area */
#rightMonitorBackground {
  position: absolute;
  right: 13%;
  top: 28%;
  width: 34%;
  height: 49%;
  background: 
    radial-gradient(ellipse, #0a0f0a 0%, #050a05 35%, #020502 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(0, 100, 0, 0.03) 1px,
      transparent 2px
    );
  border-radius: 8px;
  animation: crt-flicker 0.1s infinite linear alternate, crt-static 0.05s infinite;
  z-index: 40;
}

/* CRT scanlines and phosphor glow for right panel background */
#rightPanel::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 1px,
      rgba(0, 0, 0, 0.08) 1px,
      rgba(0, 0, 0, 0.08) 2px
    ),
    radial-gradient(
      ellipse at center,
      transparent 60%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 255, 0, 0.03) 0%,
      rgba(0, 255, 0, 0.01) 40%,
      transparent 70%
    );
  pointer-events: none;
  animation: scanlines 0.06s linear infinite, minimal-phosphor-glow 2s ease-in-out infinite alternate;
  border-radius: 12px;
  z-index: 2;
}

/* Control buttons */
#divButtonBar {
  position: absolute;
  left: 15%;
  top: 75%;
  transform: translateY(-50%);
  width: auto;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  z-index: 9999;
  padding: 6px;
  border-radius: 4px;
}

/* Step controls */
#stepControls {
  position: absolute;
  left: 56%;
  top: 76%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 9999;
  padding: 6px;
}

/* Log and input sections */
#divLog {
  margin-top: 5px;
  flex: 1;
  position: relative;
  z-index: 10;
}

#divUserProgramInput {
  flex: 1;
  position: relative;
  z-index: 10;
}

/* Panel row layout */
.panel-row {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
  align-items: stretch;
  justify-content: space-between;
}

/* Section-specific styling */
.log-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cpu-section {
  margin-top: 5px;
  flex: 0.8;
  display: flex;
  flex-direction: column;
}

.program-section {
  margin-top: 5px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Force equal heights for top row textareas */
#rightPanel .panel-row textarea {
  height: 60px;
  resize: none;
  min-height: 80px;
  max-height: 80px;
  color: #00ff55;
  text-shadow: 0 0 6px #00ff55;
}

#taCPU {
  font-size: 9.6px;           
  line-height: 1.05;
  padding: 4px 6px;         
}

/* Memory table styling */
.memory-table {
  background-color: rgba(0, 20, 0, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #00ff55;
  margin-top: -2px;
  margin-bottom: 4px;
  overflow-y: auto;
  overflow-x: auto;
  height: 73px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scrollbar-gutter: stable;
  animation: 
    crt-flicker 0.15s infinite linear, 
    crt-static 0.08s infinite linear,
    crt-wave 3s infinite ease-in-out,
    crt-jitter 0.3s infinite linear,
    minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

#memory-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Process table styling */
.process-table {
  background-color: rgba(0, 20, 0, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #00ff55;
  margin-top: -2px;
  margin-bottom: 4px;
  overflow-y: auto;
  overflow-x: auto;
  height: 73px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scrollbar-gutter: stable;
  animation:
    crt-flicker 0.15s infinite linear,
    crt-static 0.08s infinite linear,
    crt-wave 3s infinite ease-in-out,
    crt-jitter 0.3s infinite linear,
    minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

#process-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 500px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.process-header, .process-row {
  display: grid;
  grid-template-columns: 30px 56px 44px 50px 32px 32px 24px 42px 56px 120px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  padding: 2px;
  font-size: 10px;
  line-height: 1.2;
  justify-items: center;
  min-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.process-header {
  background-color: rgba(0, 40, 0, 0.35);
  font-weight: bold;
  color: #00cc33;
}

.process-row:hover {
  background-color: rgba(0, 255, 65, 0.1);
}

/* Highlight the process currently executing on the CPU */
.process-row.active {
  background-color: rgba(0, 255, 65, 0.1);
}

.process-empty {
  padding: 4px;
  color: #00cc33;
  text-align: center;
  width: 100%;
  align-self: center;
}

/* Center text inside header/data cells */
.process-header span,
.process-row span,
.memory-header span,
.memory-row span {
  text-align: center;
  justify-self: center;
  align-self: center;
  white-space: nowrap;
}

/* Auto-hiding scrollbars for process table */
.process-table {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* WebKit browsers - hide scrollbars by default */
.process-table::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

.process-table::-webkit-scrollbar-track {
  background: transparent;
}

.process-table::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-table::-webkit-scrollbar-corner {
  background: transparent;
}

/* Show scrollbars on hover */
.process-table:hover {
  scrollbar-color: rgba(0, 255, 65, 0.6) transparent;
}

.process-table:hover::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.process-table:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

/* Custom scrollbar styling */
.memory-table::-webkit-scrollbar {
  width: 8px;
}

.memory-table::-webkit-scrollbar-track {
  background: rgba(0, 20, 0, 0.8);
  border-radius: 4px;
}

.memory-table::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.memory-table::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.8);
}

.memory-header, .memory-row {
  display: grid;
  grid-template-columns: 34px 60px 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  padding: 2px;
  font-size: 10px;
  line-height: 1.2;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

.memory-header {
  background-color: rgba(0, 40, 0, 0.35);
  font-weight: bold;
  color: #00cc33;
}

.memory-row {
  transition: background-color 0.2s;
  padding: 1px 0;
}

.memory-row:hover {
  background-color: rgba(0, 255, 65, 0.1);
}

.memory-row.active {
  background-color: rgba(0, 255, 65, 0.2);
}

.byte-col.active-fetch {
  background-color: rgba(0, 255, 65, 0.35);
  color: #003300;
  border-radius: 2px;
  padding: 0 2px;
}

.byte-col.active-opcode {
  background-color: rgba(0, 200, 255, 0.45);
  color: #001a1a;
  border-radius: 2px;
  padding: 0 2px;
}

.addr-col {
  text-align: left;
  padding: 0 4px;
  color: #00cc33;
  font-weight: bold;
  font-size: 10px;
}

.frame-col {
  text-align: right;
  padding: 0 4px 0 2px;
  color: #00aa44;
  font-weight: bold;
  width: 32px;
}

.byte-col {
  text-align: center;
  padding: 0 2px;
  color: #00cc33;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

/* Label styling */
#rightPanel label {
  color: #00ff55;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 0 0 7px #00ff55;
  margin-bottom: 3px;
  display: block;
  line-height: 1.2;
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-jitter 0.3s infinite linear,
             minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

/* Scheduler info in Processes label */
#schedulerInfo {
  float: right;
  font-size: 10px;
  font-weight: normal;
}

/* Textarea styling */
textarea {
  font-family: 'Courier New', monospace;
  background-color: rgba(0, 20, 0, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  resize: none;
  box-sizing: border-box;
  font-size: 10px;
  color: #00ff41;
  text-shadow: 0 0 3px #00ff41;
  position: relative;
  z-index: 15;
  box-shadow: 
    inset 0 0 10px rgba(0, 255, 65, 0.05),
    0 0 5px rgba(0, 255, 65, 0.08);
  transition: box-shadow 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  /* Remove default scrollbar styling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  /* CRT effects for textarea */
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-wave 3s infinite ease-in-out,
             crt-jitter-very-gentle 0.3s infinite linear,
             minimal-phosphor-glow 2s ease-in-out infinite alternate;
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
textarea::-webkit-scrollbar {
  display: none;
}

/* Focus state for textareas */
textarea:focus {
  outline: none;
  box-shadow: 
    inset 0 0 15px rgba(0, 255, 65, 0.1),
    0 0 10px rgba(0, 255, 65, 0.2);
}

#taHostLog {
  height: 70%;
  min-height: 100px;
  max-height: 150px;
  caret-color: transparent;
  user-select: text;
}

#taProgramInput {
  height: 25%;
  min-height: 50px;
  max-height: 80px;
}

/* Control button styling */
.normal_button {
  width: 80px;
  height: 35px;
  border-radius: 2px;
  border: 2px outset #a8a090;
  background: linear-gradient(145deg, #e8e0d0, #d0c8b8);
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  color: #404040;
  text-shadow: 1px 1px 0px #f0f0f0;
  box-shadow: 
    inset 1px 1px 2px rgba(255, 255, 255, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1),
    1px 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.1s ease;
  position: relative;
  opacity: 0.9;
}

.normal_button:hover {
  background: linear-gradient(145deg, #f0e8d8, #d8d0c0);
  border: 2px outset #b0a898;
  box-shadow: 
    inset 1px 1px 2px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(0, 0, 0, 0.08),
    2px 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.normal_button:active {
  border: 2px inset #a8a090;
  background: linear-gradient(145deg, #d0c8b8, #e8e0d0);
  box-shadow: 
    inset 2px 2px 3px rgba(0, 0, 0, 0.15),
    inset -1px -1px 2px rgba(255, 255, 255, 0.2);
  transform: translate(1px, 1px);
  opacity: 0.5;
}

.normal_button:disabled {
  background: linear-gradient(145deg, #c8c0b0, #b8b0a0);
  border: 2px outset #908880;
  color: #606060;
  text-shadow: 1px 1px 0px #d0d0d0;
  cursor: not-allowed;
  box-shadow: 
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1),
    1px 1px 2px rgba(0, 0, 0, 0.1);
  opacity: 0.5;
}

/* Status display styling */
.status-display {
  position: absolute;
  top: 57px;
  left: 20px;
  right: 20px;
  width: auto;
  height: 20px;
  background-color: transparent;
  border: none;
  padding: 4px;
  z-index: 15;
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-jitter 0.1s infinite linear,
             minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

.status-datetime {
  color: #00ff41;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: normal;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: crt-flicker 0.15s infinite linear, 
             crt-static 0.08s infinite linear,
             crt-jitter 0.3s infinite linear,
             minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

.status-message {
  display: none;
}

/* Disk table styling */
.disk-table {
  background-color: rgba(0, 20, 0, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #00ff55;
  margin-top: -2px;
  margin-bottom: 4px;
  overflow-y: auto;
  overflow-x: auto;
  height: 73px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scrollbar-gutter: stable;
  animation:
    crt-flicker 0.15s infinite linear,
    crt-static 0.08s infinite linear,
    crt-wave 3s infinite ease-in-out,
    crt-jitter 0.3s infinite linear,
    minimal-phosphor-glow 1s ease-in-out infinite alternate;
}

#disk-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

.disk-header, .disk-row {
  display: grid;
  grid-template-columns: 60px 50px 80px 80px 80px minmax(800px, 1fr);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  padding: 2px;
  font-size: 10px;
  line-height: 1.2;
  justify-items: center;
  min-width: 980px; /* width of the disk table */
  width: 100%;
  box-sizing: border-box;
}

.disk-header {
  background-color: rgba(0, 40, 0, 0.35);
  font-weight: bold;
  color: #00cc33;
}

.disk-row:hover {
  background-color: rgba(0, 255, 65, 0.1);
}

/* Center text inside header/data cells */
.disk-header span,
.disk-row span {
  text-align: center;
  justify-self: center;
  align-self: center;
  white-space: nowrap;
}

/* Data column exception - left align and allow expansion */
.disk-header .data-col,
.disk-row .data-col {
  text-align: left;
  justify-self: start;
}

/* Column-specific styling */
.tsb-col {
  color: #00cc33;
  font-weight: bold;
  font-size: 10px;
}

.inuse-col {
  color: #ff5555;
  font-weight: bold;
  font-size: 10px;
}

.nextblock-col,
.parentdir-col,
.datalength-col {
  color: #00aa44;
  font-size: 10px;
}

.data-col {
  color: #00cc33;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: visible;
}

/* Auto-hiding scrollbars for disk table */
.disk-table {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* WebKit browsers - hide scrollbars by default */
.disk-table::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

.disk-table::-webkit-scrollbar-track {
  background: transparent;
}

.disk-table::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.6);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.disk-table::-webkit-scrollbar-corner {
  background: transparent;
}

/* Show scrollbars on hover */
.disk-table:hover {
  scrollbar-color: rgba(0, 255, 65, 0.6) transparent;
}

.disk-table:hover::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.disk-table:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}