:root {
  --bg-color: #008080;
  --surface-color: #c0c0c0;
  --shadow-dark: #404040;
  --shadow-light: #ffffff;
  --shadow-black: #000000;
  --interactive-highlight: #000080;
  --interactive-highlight-text: #ffffff;
  --text-color: #000000;
  --window-title-start: #00008B;
  --window-title-end: #0000FF;
}
@font-face {
  font-family: 'Levi Windows';
  src: url('assets/leviwindows/Windows\ Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
  background-color: #008080;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="2" height="2" fill="%23008080"/><rect x="2" y="2" width="2" height="2" fill="%23008080"/></svg>');
  margin: 0;
  font-family: "MS Sans Serif", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  overflow: hidden;
}

.beveled-box {
  background-color: var(--surface-color);
  border-top: 2px solid var(--shadow-light);
  border-left: 1px solid var(--shadow-light);
  border-right: 2px solid var(--shadow-dark);
  border-bottom: 1px solid var(--shadow-dark);
  box-shadow: 1px 1px 0 var(--shadow-black);
}

.beveled-box-inset {
  border-top: 1px solid var(--shadow-dark);
  border-left: 1px solid var(--shadow-dark);
  border-right: 1px solid var(--shadow-light);
  border-bottom: 1px solid var(--shadow-light);
  box-shadow: inset 1px 1px 0 var(--shadow-black);
}

.task-manager {
  position: fixed;
  width: 100%;
  height: 35px;
  display: flex;
  align-items: center;
  background-color: var(--surface-color);
  border-top: 1px solid var(--shadow-light);
  bottom: 0;
  left: 0;
  z-index: 1000;
}
.act-start-button {
  display: flex;
  align-items: center;
  padding: 0.5px 8px;
  margin: 4px;
  cursor: pointer;
  z-index: 1001;
}
.act-start-button.active {
  background: var(--surface-color);
}
.start-logo {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  image-rendering: pixelated;
}
.start {
  font-size: 16px ;
  font-weight: bold;
  font-family: 'Levi Windows', monospace;
  font-display: pixelated;
  margin-bottom: 1px;
}
.start-menu {
  position: fixed;
  bottom: 35px;
  left: 0px;
  height: 280px;
  width: 170px;
  box-shadow: 1px 1px 0 var(--shadow-black);
  padding: 0;
  display: none;
  font-family: inherit;
  z-index: 999;
}
.windows95{
    margin: 0;
    padding: 0;
    bottom: 0;
    position:absolute;
    display: flex;
    height: 150px;
    width: 25px;
}
.start-menu-sidebar-bg{
    height: 100%;
    width: 100%;
    background-color: gray;
}
.time{
  height: auto;
  width: auto;
  z-index: 1000;
  bottom: 0;
  z-index: 1001;
  display: flex;
  position: absolute;
  right: 0;
  margin-left: auto;
  margin: 3px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}
.clock{
  font-size: 14px;
  font-family: 'Levi Windows', monospace;
  font-weight: bold;
  font-weight: normal;
  color: var(--text-color);
  /* padding :5px 5px 5px 5px; */
  margin: 4px;
  text-wrap: nowrap;
  word-spacing: 2px;
  /* line-height: 1; */
  -webkit-font-smoothing: none;
-moz-osx-font-smoothing: grayscale;
font-smooth: never;

}
.icons {
  display: flex;
  flex-direction: column; /* This makes icons stack downwards first */
  flex-wrap: wrap; /* This allows them to wrap into new columns */
  align-content: flex-start; /* Aligns new columns to the top-left */
  height: calc(100vh - 35px); /* Sets the height of the desktop area */
  gap: 20px;
  font-family: 'Levi Windows', monospace;
  padding: 20px;
  box-sizing: border-box; /* Ensures padding is included in the height calculation */
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  padding: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.icon:hover {
  background-color: color-mix(in srgb, var(--interactive-highlight) 20%, transparent);
}

.icon-img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.icon-label {
  font-size: 15px;
  /* font-family: 'MS Sans Serif', sans-serif; */
  color: var(--shadow-light);
  text-align: center;
  margin-top: 4px;
  text-shadow: 1px 1px 0 var(--shadow-black);
}

.icon.selected {
  background-color: color-mix(in srgb, var(--interactive-highlight) 50%, transparent);
  border: 1px solid var(--interactive-highlight);
}
.window {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 400px;
  height: 300px;
  box-shadow: 2px 2px 0 var(--shadow-black);
  display: none;
  resize: both;
  overflow: hidden;
  z-index: 1000;
  min-width: 200px;
  min-height: 150px;
}

.window-titlebar {
  background-color: rgb(2, 2, 121);
  color: var(--shadow-light);
  padding: 2px 4px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 11px;
  font-weight: bold;
  height: 25px;
}

.window-controls {
  display: flex;
}

.window-controls button {
  font-size: 12px;
  font-weight: bold;
  padding: 1px 4px;
  margin-left: 2px;
  cursor: pointer; /* Already on .beveled-box */
  width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-controls button:hover {
  background: #a0a0a0; /* Keep hover for now, or add to variables */
}

.window-controls button:active {
}
/* Target ONLY Photos window */
.window[data-window-name="Photos"] {
  font-family: 'Levi Windows', monospace;
  font-size: 17px;
  background: white;
  color: black;
  border: 2px solid #808080;
}

/* Titlebar */
.window:has(.photos-canvas) .window-titlebar {
  background: #000080; /* dark blue */
  color: white;
  font-weight: bold;
  padding: 2px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Menu bar (File, Edit, View, Help) */
.window:has(.photos-canvas) .menu-bar {
  display: flex;
  gap: 20px;
  background: #c0c0c0;
  border-bottom: 0px solid #808080;
  padding: 0px 0px;
}

.window:has(.photos-canvas) .menu-bar span {
  cursor: default;
  padding: 0 4px;
}

/* Folder contents */
.window:has(.photos-canvas) .folder-contents {
  display: flex;
  flex-direction: row; /* Ensure horizontal layout */
  padding: 10px;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  gap: 20px;
  /* background is now on the canvas */
}

/* The new white canvas area */
.window:has(.photos-canvas) .photos-canvas {
  background: white;
  flex-grow: 1; /* Allow canvas to grow and fill available space */
  height: 0; /* Set initial height to 0 for flex-grow to work correctly */
  overflow: auto; /* Add scrollbars if content overflows */
  box-sizing: border-box;
}

/* Folder items */
.window:has(.photos-canvas) .folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  text-align: center;
  cursor: default;
}

.window:has(.photos-canvas) .folder-item::before {
  content: url(assets/download.png);
  font-size: 10px;
  margin-bottom: 0px;
}

/* The new status bar at the bottom */
.window:has(.photos-canvas) .status-bar {
  display: flex;
  gap: 4px;
  height: 22px;
  flex-shrink: 0; /* Prevent the status bar from shrinking */
  background: var(--surface-color);
  padding: 2px;
  box-sizing: border-box;
  font-size: 11px;
}

.window:has(.photos-canvas) .status-bar-panel {
  padding: 0px 4px;
  flex-basis: 50%; /* Each panel takes up half the space */
}

.window-content {
  padding: 0; /* Padding is handled by more specific rules or is zero */
  height: calc(100% - 25px); /* Height of window minus titlebar */
  overflow: auto;
  background: var(--surface-color);
  display: flex; /* Use flexbox for layout */
  flex-direction: column; /* Stack children vertically */
}

/* Add padding specifically for the Photos window content area */
.window:has(.photos-canvas) .window-content {
  padding: 0 4px 4px 4px; /* Add some padding around the canvas */
  gap: 4px; /* Add a small gap between menu bar and canvas */
}

/* --- Styles for Resume/PDF Window --- */

.pdf-toolbar {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--surface-color);
  border-bottom: 1px solid var(--shadow-dark);
  flex-shrink: 0; /* Prevent toolbar from shrinking */
}

.pdf-button {
  padding: 2px 8px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 11px;
  cursor: pointer;
}

.pdf-button:active {
  border-top: 1px solid var(--shadow-dark);
  border-left: 1px solid var(--shadow-dark);
  border-right: 1px solid var(--shadow-light);
  border-bottom: 1px solid var(--shadow-light);
  box-shadow: inset 1px 1px 0 var(--shadow-black);
}

/* --- Styles for Photo Items in Folders --- */
.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
}

.photo-item:hover {
  background-color: color-mix(in srgb, var(--interactive-highlight) 20%, transparent);
  border: 1px dotted var(--interactive-highlight);
}

.photo-item-thumbnail {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  border: 1px solid var(--shadow-dark);
  background-color: var(--shadow-light);
  padding: 1px;
}

.photo-item-label {
  font-size: 12px;
  margin-top: 4px;
  word-wrap: break-word;
}

/* --- Styles for Paint App --- */
.paint-canvas-container {
  flex-grow: 1; /* Make container fill available space */
  background: var(--shadow-dark); /* BG color for the inset area */
  overflow: hidden; /* Hide any overflow */
  padding: 0;
}

.paint-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.window-content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.window-content::-webkit-scrollbar-track {
  background: var(--surface-color);
}

.window-content::-webkit-scrollbar-thumb {
  background: var(--surface-color);
}

.window-content::-webkit-scrollbar-corner {
  background: var(--surface-color);
}
.computer-window{
}
.taskbar-button {
  padding: 2px 8px;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 15px;
  margin: 0 2px;
  cursor:pointer;
}

.taskbar-button:hover {
  /* Hover effect can be managed with variables too if desired */
}

.taskbar-button:active {
}

#taskbar-windows {
  margin-left: 4px;
}

/* Start Menu Styles */
.start-menu-content {
  display: flex;
  height: 100%;
}

.start-menu-left {
  width: 30px;
  background: var(--surface-color);
}

.start-menu-right {
  flex: 1;
    font-family: 'Levi Windows', monospace;

  padding: 0px;
}

.start-menu-section {
  margin-bottom: 4px;
}

.start-menu-item {
  display: flex;
  align-items: center;
  padding: 4px 4px;
  cursor: pointer;
  margin: 0px;
  box-sizing: border-box;
  font-size: 15px;
  color: var(--text-color);
  user-select: none;
}

.start-menu-item:hover {
  background-color: var(--interactive-highlight);
  color: var(--interactive-highlight-text);
}

.start-menu-icon {
  margin-right: 8px;
  font-size: 12px;
}

.start-menu-divider {
  height: 1px;
  background: var(--shadow-ligh);
  margin: 4px 0;
  border-top: 1px solid var(--shadow-light);
}

/* Folder Contents Styles */
.folder-contents {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder-item {
  padding: 4px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12px;
}

.folder-item:hover {
  background-color: var(--interactive-highlight);
  color: var(--interactive-highlight-text);
}

/* Computer Window Styles */
.window:has(.photos-canvas) .folder-item[data-file-type="pdf"],
.computer-drive{
  display: flex; /* This was in .computer-drive, now shared */
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12px;
}

.window:has(.photos-canvas) .folder-item[data-file-type="pdf"]::before {
  content: url(/assets/pdf_icon.png); /* Make sure you have a pdf_icon.png in /assets */
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.computer-drive:hover {
  background-color: var(--interactive-highlight);
  color: var(--interactive-highlight-text);
}

.drive-icon {
  margin-right: 8px;
  font-size: 16px;
}
