/* General look */
body {
  background: #008080; /* teal Win98 desktop */
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 10px;
}

.split {
  width: 50%;
  position: fixed;
  overflow-x: hidden;

}

/* Control the left side */
.left {
  left: 0;
  background: #c0c0c0;
  padding: 2px 6px;
  font-size: 13px;
  border-bottom: 2px solid #808080;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #404040;
}

/* Control the right side */
.right {
  right: 0;
  background: #c0c0c0;
  padding: 2px 6px;
  font-size: 13px;
  border-bottom: 2px solid #808080;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #404040;
}



/* Hide checkbox itself */
.window-toggle {
  display: none;
}

/* Hide window 1 when its toggle is checked */
#win1-toggle:checked + .window {
  display: none;
}

/* Hide window 2 when its toggle is checked */
#win2-toggle:checked + .window2 {
  display: none;
}

/* Hide recycle bin window when its toggle is checked */
#win3-toggle:checked + .window3 {
  display: none;
}



/* Window */
.window {
  display: block;
  width: 400px;
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: inset -2px -2px #404040, inset 2px 2px #fff;

  /* Positioning */
  position: absolute; /* or fixed */
  top: 50%;   /* distance from top of page */
  left: 50%; /* distance from left of page */
  transform: translate(-50%, -50%);
}



/* Window */
.window2 {
  display: block;
  width: 600px;
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: inset -2px -2px #404040, inset 2px 2px #fff;

  /* Positioning */
  position: absolute; /* or fixed */
  top: 50%;   /* distance from top of page */
  left: 50%; /* distance from left of page */
  transform: translate(-50%, -50%);
}

/* Recycle bin window style */
.window3 {
  display: block;
  width: 750px;
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: inset -2px -2px #404040, inset 2px 2px #fff;

  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* put it behind main error window by default */
}


/* When checkbox is checked, hide window */
.window-toggle:checked + .window {
  display: none;
}

/* Error */
/* ============= */

/* layout for icon + text (keeps them centered together) */
.error-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;            /* space between icon and text */
  margin-bottom: 12px;
  text-align: left;     /* keep text layout natural beside icon */
}

/* Use your Error.png as background */
.error-icon {
  width: 32px;   /* Adjust to match your image size */
  height: 32px;
  margin-right: 10px;
  background: url("Error.png") no-repeat center center;
  background-size: contain; /* ensures the image fits */
}

/* Error text */
.error-text {
  margin: 0;
  font-weight: bold;
}

/* Center button under the message */
.error-button {
  display: flex;
  justify-content: center;
}

/* Title Bar & window */
/* ============= */

/* Title bar */
.title-bar {
  background: navy;
  color: white;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar .title {
  font-weight: bold;
}

.title-bar-controls button {
  width: 16px;
  height: 14px;
  margin-left: 2px;
  background: #c0c0c0;
  border: 1px solid #000;
  box-shadow: inset -1px -1px #404040, inset 1px 1px #fff;
  cursor: pointer;
}

/* Subheader (menu bar) */
.window-subheader {
  background: #c0c0c0;
  padding: 2px 6px;
  font-size: 13px;
  border-bottom: 2px solid #808080;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #404040;
}

/* Window body */
.window-body {
  padding: 10px;
  background: #fff;
  border: 2px solid #808080;
  box-shadow: inset -2px -2px #fff, inset 2px 2px #808080;
}

/* Window footer (like Win98 dialog button area) */
.window-footer {
  margin-top: 10px;
  padding: 8px;
  background: #c0c0c0;
  border-top: 2px solid #808080;
  box-shadow: inset -2px -2px #fff, inset 2px 2px #404040;
  display: flex;
  justify-content: center; /* center the button horizontally */
}

/* Toolbar under the menu */
.window-toolbar {
  background: #c0c0c0;
  padding: 3px;
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #808080;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #404040;
}

.toolbar-btn {
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
}
.toolbar-btn:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Explorer split panes */
.window-explorer {
  display: flex;
  height: calc(100% - 90px); /* subtract title + menu + toolbar + status */
  background: #fff;
  border-top: 2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: inset -2px -2px #fff, inset 2px 2px #808080;
}

.explorer-nav-taskbar {
  width: 180px;
  background: #c0c0c0;
  padding: 2px;
  border-right: 2px solid #808080;
}

.explorer-nav-taskbar-r {
  background: #c0c0c0;
  padding: 2px;
  border-right: 2px solid #808080;
}


.explorer-nav {
  width: 180px;
  background: #fff;
  padding: 5px;
  border-right: 2px solid #808080;
}

.explorer-files {
  flex: 1;
  background: #fff;
  padding: 10px;
}

/* Status bar */
.window-status {
  background: #c0c0c0;
  padding: 2px 6px;
  font-size: 12px;
  border-top: 2px solid #808080;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #404040;
}



/* File item layout in explorer content */
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.file-item img {
  width: 16px;
  height: 16px;

}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: bold;
}

.file-details {
  color: #333;
  font-size: 11px;
}




/* Buttons */
.btn {
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  padding: 1px 6px;
  cursor: pointer;
}

/* Buttons */
.btn2 {
  background: #c0c0c0;
  border: 0px solid #000;
  border-right-color: #404040;
  border-bottom-color: #404040;
  padding: 0px 0px;
  cursor: pointer;
}

.btn:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.btn2:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Desktop */
/* ============= */

/* Desktop area Left */
.desktop {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* spacing between icons */
}

/* Desktop area Right */
.desktop2 {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* spacing between icons */
}

/* Shortcut (icons) */
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px; /* standard Win98 desktop icon size */
  text-decoration: none;
  color: white; /* desktop text is white */
  font-size: 12px;
  cursor: default;
}

.shortcut img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}


.shortcut span {
  text-align: center;
  
  white-space: normal; /* allow line breaks */
  max-width: 72px;
}

/* Hover effect like selected icon */
.shortcut:hover {
  background: navy;
  outline: 1px dotted white;
}



/* Taskbar */
/* ============= */

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  border-top: 2px solid #fff;
  box-shadow: inset -2px -2px #404040, inset 2px 2px #fff;
  padding: 2px;
}

.start-button {
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  padding: 2px 8px;
  margin-right: 5px;
  font-weight: bold;
  cursor: pointer;
}

.taskbar-item {
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  padding: 2px 8px;
  margin-right: 5px;
}
