/* Main Layout, Boot Screens, and Core Desktop Architecture */

:root {
  --font-family-sys: "Tahoma", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-pixel: "VT323", monospace;
  --font-family-code: "Courier Prime", "Courier New", monospace;
  
  /* Shared layouts */
  --taskbar-height: 40px;
  
  /* Animations */
  --win-transition: 0.18s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes window-open {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family-sys);
  font-size: 13px;
  background-color: #000;
  color: #000;
}

/* Scrollbars - Retro Styled */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
  background-color: var(--scroll-bg, #dfdfdf);
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb, #c0c0c0);
  border-top: 1.5px solid var(--btn-light, #fff);
  border-left: 1.5px solid var(--btn-light, #fff);
  border-bottom: 1.5px solid var(--btn-dark, #808080);
  border-right: 1.5px solid var(--btn-dark, #808080);
  box-shadow: inset 1px 1px 0px var(--btn-light-soft, #f0f0f0);
}
::-webkit-scrollbar-button {
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--scroll-thumb, #c0c0c0);
  border-top: 1.5px solid var(--btn-light, #fff);
  border-left: 1.5px solid var(--btn-light, #fff);
  border-bottom: 1.5px solid var(--btn-dark, #808080);
  border-right: 1.5px solid var(--btn-dark, #808080);
}

/* ==========================================================================
   1. BIOS & BOOT SCREENS
   ========================================================================== */

.boot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-family-code);
  font-size: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.bios-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bios-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px double #aaa;
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-weight: bold;
}

.bios-logo {
  color: #00ff80;
  text-shadow: 0 0 5px rgba(0, 255, 128, 0.4);
}

.bios-body p {
  margin-bottom: 6px;
  opacity: 0.95;
  animation: typing-effect 0.05s steps(20) forwards;
}

.bios-footer {
  margin-top: auto;
  border-top: 1px dashed #555;
  padding-top: 15px;
  text-align: center;
}

.bios-btn {
  background: #222;
  color: #00ff80;
  border: 2px solid #00ff80;
  font-family: var(--font-family-code);
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.3);
  transition: all 0.2s ease;
  font-weight: bold;
  animation: pulse-boot-btn 1.5s infinite;
}
.bios-btn:hover {
  background: #00ff80;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.8);
}

.bios-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

@keyframes pulse-boot-btn {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 0 15px rgba(0,255,128,0.6); }
  100% { transform: scale(1); }
}

.blink {
  animation: blink-text-anim 1s step-end infinite;
  color: #ffff80;
}
@keyframes blink-text-anim {
  50% { opacity: 0; }
}

/* OS Loader Panel */
.os-loader-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Loading animation bars */
.os-loading-bar-container {
  width: 250px;
  height: 15px;
  border: 2px solid #808080;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.os-loading-bar {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.os-loading-progress-chunk {
  width: 12px;
  height: 100%;
  background-color: var(--bar-progress-color, #0050ff);
  margin-right: 3px;
  animation: chunk-slide 1.5s infinite linear;
}

.os-loading-progress-chunk:nth-child(2) { animation-delay: 0.15s; }
.os-loading-progress-chunk:nth-child(3) { animation-delay: 0.3s; }

@keyframes chunk-slide {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(250px); }
}

/* Helper Class to Hide panels */
.hidden {
  display: none !important;
}


/* ==========================================================================
   2. DESKTOP INTERFACE
   ========================================================================== */

.desktop-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--desktop-bg);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Wallpapers */
body[data-wallpaper="bliss"] .desktop-wrapper {
  background-image: url('assets/bliss.jpg'), linear-gradient(135deg, #0b7af7 0%, #0028a5 100%);
}
body[data-wallpaper="teal"] .desktop-wrapper {
  background-image: none !important;
  background-color: #008080 !important;
}
body[data-wallpaper="autumn"] .desktop-wrapper {
  background-image: url('assets/autumn.jpg'), linear-gradient(135deg, #a55a00 0%, #4a2800 100%);
}
body[data-wallpaper="matrix"] .desktop-wrapper {
  background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('assets/matrix.gif');
  background-color: #000;
  background-size: repeat;
}
body[data-wallpaper="space"] .desktop-wrapper {
  background-image: url('assets/space.jpg'), linear-gradient(135deg, #1f0030 0%, #050010 100%);
}

.desktop-grid {
  flex: 1;
  position: relative;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  grid-template-rows: repeat(auto-fill, 85px);
  grid-auto-flow: column;
  gap: 15px;
  justify-content: start;
  align-content: start;
  z-index: 2;
  overflow: hidden;
}

.desktop-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 80px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px;
  box-sizing: border-box;
}

.desktop-icon-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px dotted rgba(255, 255, 255, 0.4);
}

.desktop-icon-item:focus,
.desktop-icon-item.selected {
  outline: none;
  background-color: var(--icon-select-bg, rgba(11, 122, 247, 0.5));
  border: 1px dotted var(--icon-select-border, #0b7af7);
}

.icon-img {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 5px;
  image-rendering: pixelated;
}

.icon-text {
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 1px #000;
  word-break: break-word;
  line-height: 1.2;
}


/* ==========================================================================
   3. WINDOW ARCHITECTURE (Draggable & Active)
   ========================================================================== */

.window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-height));
  pointer-events: none; /* Let clicks pass to desktop if not clicking window */
  z-index: 3;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  pointer-events: auto; /* Re-enable clicks inside window */
  min-width: 280px;
  min-height: 180px;
  background-color: var(--win-bg, #dfdfdf);
  border: 2px solid;
  border-color: var(--win-border-color, #fff #808080 #808080 #fff);
  box-shadow: var(--win-shadow, 2px 2px 10px rgba(0,0,0,0.3));
  transition: transform var(--win-transition), opacity var(--win-transition);
  transform: scale(1);
  opacity: 1;
  animation: window-open 0.18s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.window.minimized {
  transform: scale(0.3) translateY(400px);
  opacity: 0;
  pointer-events: none;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.window-header {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  height: 30px;
  background: var(--win-header-bg);
  color: var(--win-header-text);
  font-weight: bold;
  cursor: move;
}

.window.active-window .window-header {
  background: var(--win-header-active-bg);
  color: var(--win-header-active-text);
}

.window-title-container {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-header-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 6px;
  image-rendering: pixelated;
}

.window-title {
  font-size: 12px;
  text-shadow: var(--win-title-shadow, 1px 1px 0px rgba(0,0,0,0.2));
}

.window-controls {
  display: flex;
  gap: 2px;
}

.win-btn {
  width: 21px;
  height: 21px;
  border: 1px solid;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 12px;
}

.win-btn:active {
  padding-top: 1px;
  padding-left: 1px;
}

.win-btn.close {
  background-color: var(--close-btn-bg, #c0c0c0);
  color: var(--close-btn-text, #000);
  border-color: var(--close-btn-border, #fff #808080 #808080 #fff);
}

.window-body {
  flex: 1;
  padding: 10px;
  overflow: auto;
  position: relative;
  background-color: var(--win-body-bg, #fff);
}

/* Window Resizer Handle */
.window-resizer {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 0;
  bottom: 0;
  cursor: se-resize;
  background-image: linear-gradient(135deg, transparent 40%, #808080 40%, #808080 50%, transparent 50%, transparent 60%, #808080 60%, #808080 70%, transparent 70%, transparent 80%, #808080 80%, #808080 90%, transparent 90%);
  background-size: 8px 8px;
  z-index: 50;
}


/* ==========================================================================
   4. SYSTEM TASKBAR & START MENU
   ========================================================================== */

.taskbar {
  height: var(--taskbar-height);
  background: var(--taskbar-bg);
  border-top: var(--taskbar-border-top);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  z-index: 10;
  position: relative;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.15);
}

.start-button {
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: var(--font-family-sys);
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
}

.start-logo {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.taskbar-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  overflow-x: auto;
  height: 100%;
  padding-right: 10px;
}
/* Hide scrollbar in taskbar apps */
.taskbar-apps::-webkit-scrollbar { display: none; }

.taskbar-tab {
  height: 28px;
  min-width: 110px;
  max-width: 160px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid;
  cursor: pointer;
  font-size: 11px;
}

.taskbar-tab-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.taskbar-tab-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* System Tray */
.system-tray {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-left: 1px solid;
  border-top: 1px solid;
  border-color: var(--tray-border, #808080 #fff #fff #808080);
  background-color: var(--tray-bg, #dfdfdf);
  gap: 6px;
  margin-left: auto;
}

.tray-btn {
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  filter: var(--tray-btn-filter, none);
}
.tray-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.tray-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}

.tray-clock {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 4px;
}

/* Start Menu Structure */
.start-menu {
  position: absolute;
  bottom: var(--taskbar-height);
  left: 0;
  width: 420px;
  max-width: 95vw;
  background-color: var(--menu-bg, #dfdfdf);
  border: 2px solid;
  border-color: var(--menu-border-color, #fff #808080 #808080 #fff);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.4);
  display: flex;
  z-index: 999;
}

.start-menu-sidebar {
  width: 40px;
  background: var(--menu-sidebar-bg);
  display: flex;
  align-items: flex-end;
  padding: 10px 4px;
}

.start-menu-sidebar-text {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.8;
  font-family: var(--font-family-sys);
}
.start-menu-sidebar-text span {
  font-weight: normal;
}

.start-menu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.start-menu-profile {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--menu-profile-bg);
  border-bottom: 1px solid var(--menu-profile-border, #0028a5);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 2px solid #fff;
  background-image: url('assets/avatar.jpg'), linear-gradient(#0b7af7, #00ff80);
  background-size: cover;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
}

.profile-name {
  margin-left: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 1px #000;
}

.start-menu-columns {
  display: flex;
  flex: 1;
  background: var(--menu-columns-bg, #fff);
}

.start-menu-left {
  flex: 6;
  padding: 6px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.start-menu-right {
  flex: 5;
  background-color: var(--menu-right-bg, #dfdfdf);
  padding: 6px;
  border-left: 1px solid var(--menu-col-separator, #c0c0c0);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.menu-item:hover {
  background-color: var(--menu-hover-bg, #0b7af7);
  color: var(--menu-hover-text, #fff);
}
.menu-item:hover .menu-item-desc {
  color: var(--menu-hover-desc, #fff);
}

.menu-item-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  image-rendering: pixelated;
}

.menu-item-text {
  display: flex;
  flex-direction: column;
}

.menu-item-title {
  font-weight: bold;
  font-size: 12px;
}

.menu-item-desc {
  font-size: 10px;
  color: #777;
}

.menu-separator {
  height: 1px;
  background-color: var(--menu-separator, #c0c0c0);
  margin: 6px 0;
}

.start-menu-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px;
  background: var(--menu-footer-bg);
  gap: 10px;
}

.footer-btn {
  padding: 4px 10px;
  border: 1px solid;
  cursor: pointer;
  font-weight: bold;
}


/* ==========================================================================
   5. DIALOGS, CONTEXT MENUS & SETTINGS
   ========================================================================== */

/* Right-click Context Menu */
.context-menu {
  position: absolute;
  width: 180px;
  background-color: var(--win-bg, #dfdfdf);
  border: 2px solid;
  border-color: var(--win-border-color, #fff #808080 #808080 #fff);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 10000;
  padding: 2px;
  display: flex;
  flex-direction: column;
}

.context-menu-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  cursor: pointer;
}

.context-menu-item:hover {
  background-color: var(--menu-hover-bg, #0b7af7);
  color: var(--menu-hover-text, #fff);
}

.ctx-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  image-rendering: pixelated;
  display: inline-block;
}

.ctx-text {
  font-size: 11px;
}

.context-separator {
  height: 1px;
  background-color: #808080;
  border-bottom: 1px solid #fff;
  margin: 3px 2px;
}

/* Shutdown Overlay */
.shutdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shutdown-dialog {
  width: 320px;
  background-color: var(--shutdown-bg, #00309c);
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  padding: 15px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.8);
}

.shutdown-header {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 15px;
}

.shutdown-options-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.shutdown-opt-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  gap: 6px;
}

.opt-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.shutdown-footer {
  text-align: right;
}

.shutdown-footer button {
  padding: 4px 12px;
  cursor: pointer;
}

/* Properties Dialog Settings */
.properties-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.3);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.properties-box {
  width: 380px;
  background-color: var(--win-bg, #dfdfdf);
  border: 2px solid;
  border-color: var(--win-border-color, #fff #808080 #808080 #fff);
  padding: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialog-title-bar {
  background: var(--win-header-active-bg);
  color: var(--win-header-active-text);
  font-weight: bold;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-close-btn {
  width: 16px;
  height: 16px;
  border: 1px solid;
  cursor: pointer;
  font-size: 8px;
}

.properties-tabs {
  display: flex;
  gap: 2px;
  padding: 0 4px;
  border-bottom: 1px solid #808080;
}

.tab-header {
  padding: 4px 10px;
  cursor: pointer;
  border: 1px solid;
  border-color: #808080 #808080 transparent #808080;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #d0d0d0;
  font-size: 11px;
}

.tab-header.active {
  background-color: var(--win-bg, #dfdfdf);
  border-bottom-color: var(--win-bg, #dfdfdf);
  padding-bottom: 5px;
  margin-bottom: -1px;
  font-weight: bold;
  z-index: 2;
}

.properties-content {
  border: 1.5px solid #808080;
  padding: 10px;
  min-height: 200px;
  background-color: var(--win-bg, #dfdfdf);
}

.properties-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.wallpaper-preview-box {
  height: 110px;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

.monitor-outline {
  width: 120px;
  height: 90px;
  border: 8px solid #bbb;
  border-radius: 6px;
  background: #222;
  box-shadow: inset 0px 2px 5px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-preview {
  width: 100px;
  height: 70px;
  background-color: var(--desktop-bg);
  background-size: cover;
  background-position: center;
}

.wallpaper-selection-panel {
  display: flex;
  flex-direction: column;
}

.panel-label {
  font-weight: bold;
  margin-bottom: 4px;
}

.wallpaper-list {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  height: 80px;
  overflow-y: auto;
}

.wallpaper-item {
  padding: 4px 8px;
  cursor: pointer;
}
.wallpaper-item:hover {
  background-color: #e0e0e0;
}
.wallpaper-item.active {
  background-color: var(--menu-hover-bg, #0b7af7);
  color: var(--menu-hover-text, #fff);
}

.effects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.effect-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.properties-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px;
}

.prop-btn {
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  background: #dfdfdf;
  min-width: 60px;
}
.prop-btn:active {
  border-color: #808080 #fff #fff #808080;
}


/* ==========================================================================
   6. RESPONSIVENESS & MOBILE LAYOUTS
   ========================================================================== */

/* Tablet & Large Mobile (768px and below) */
@media (max-width: 768px) {
  body {
    touch-action: manipulation;
  }
  
  .desktop-grid {
    grid-template-columns: repeat(auto-fill, 72px);
    grid-template-rows: repeat(auto-fill, 78px);
    padding: 10px;
    gap: 8px;
  }
  
  .desktop-icon-item {
    width: 72px;
    padding: 3px;
  }
  
  .icon-img {
    width: 28px;
    height: 28px;
  }
  
  .icon-text {
    font-size: 10px;
  }

  .window {
    min-width: 90vw !important;
    min-height: 70vh !important;
    left: 5vw !important;
    width: 90vw !important;
    max-height: 85vh !important;
  }
  
  .window-body {
    font-size: 13px;
  }
  
  .taskbar-tab {
    min-width: 50px;
    max-width: 80px;
    font-size: 11px;
  }

  .system-tray {
    gap: 3px;
    padding: 0 4px;
  }
  
  .system-tray .tray-icon {
    display: none;
  }

  .start-menu {
    width: 280px;
    max-height: 70vh;
  }
  .start-menu-left {
    flex: 1;
  }
  .start-menu-right {
    display: none;
  }
  
  .window-header {
    height: 28px;
    padding: 2px 4px;
  }
  
  .win-btn {
    width: 20px;
    height: 20px;
  }
  
  .terminal-body {
    font-size: 12px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  .desktop-grid {
    grid-template-columns: repeat(auto-fill, 60px);
    grid-template-rows: repeat(auto-fill, 68px);
    padding: 8px;
    gap: 6px;
  }
  
  .desktop-icon-item {
    width: 60px;
    padding: 2px;
  }
  
  .icon-img {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
  }
  
  .icon-text {
    font-size: 9px;
    line-height: 1.1;
  }

  .window {
    min-width: 95vw !important;
    min-height: 60vh !important;
    left: 2.5vw !important;
    top: 40px !important;
    width: 95vw !important;
    max-height: 80vh !important;
    border: 1px solid;
  }
  
  .window-header {
    height: 24px;
    padding: 2px 3px;
    font-size: 11px;
  }
  
  .win-btn {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .window-body {
    font-size: 12px;
    padding: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .window-resizer {
    display: none;
  }
  
  .taskbar {
    height: 32px;
  }
  
  .taskbar-tab {
    min-width: 40px;
    max-width: 70px;
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .start-menu {
    width: 240px;
    max-height: 70vh;
    font-size: 12px;
  }
  
  .start-menu-item {
    padding: 6px 8px;
  }
  
  .start-menu-item-icon {
    width: 20px;
    height: 20px;
  }
  
  .start-menu-item-text {
    font-size: 12px;
  }
  
  .system-tray {
    display: none;
  }
  
  .desktop-icon-item {
    border-radius: 2px;
  }
  
  .desktop-icon-item:active {
    transform: scale(0.95);
  }
  
  .terminal-body {
    font-size: 11px;
    line-height: 1.3;
    padding: 8px;
  }
  
  .term-input {
    font-size: 11px;
  }
  
  .window-container {
    height: calc(100% - 32px);
  }
  
  /* Improve touch targets */
  .ie-download-btn,
  .demo-trigger-btn,
  .back-btn,
  .tool-btn {
    min-height: 32px;
    padding: 6px 12px;
  }
  
  /* Make inputs touch-friendly */
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    min-height: 32px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .ie-inside-body {
    padding: 12px;
    max-width: 100%;
  }
  
  .ie-card {
    gap: 8px;
    padding: 8px;
  }
  
  .skill-name {
    width: 100px;
    font-size: 11px;
  }
  
  .radar-svg {
    width: 180px;
    height: 180px;
  }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
  .desktop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
  }
  
  .desktop-icon-item {
    width: auto;
    flex: 1;
  }
  
  .window {
    min-width: 98vw !important;
    left: 1vw !important;
    width: 98vw !important;
  }
  
  .taskbar-tab {
    min-width: 35px;
    max-width: 60px;
    font-size: 9px;
  }
  
  .start-menu {
    width: 200px;
  }
  
  .window-title {
    font-size: 11px;
  }
}

/* ==========================================================================
   7. MATRIX WALLPAPER ANIMATIONS
   ========================================================================== */
body[data-wallpaper="matrix"] .desktop-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 255, 0, 0.05) 50%, transparent 50%),
              linear-gradient(90deg, rgba(0, 255, 0, 0.03) 50%, transparent 50%);
  background-size: 20px 20px;
  animation: matrix-grid-slide 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes matrix-grid-slide {
  from { background-position: 0 0; }
  to { background-position: 0 400px; }
}


/* ==========================================================================
   8. SPECIFIC APPLICATION STYLES (SKEUOMORPHIC STYLES)
   ========================================================================== */

/* A. My Computer */
.my-comp-wrapper {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.my-comp-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #808080;
}

.comp-avatar-large {
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  border-radius: 5px;
  background-image: url('../assets/avatar.jpg'), linear-gradient(135deg, #0b7af7, #00ff80);
  background-size: cover;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.comp-intro-text h2 {
  font-size: 18px;
  font-weight: bold;
}

.comp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--win-bg, #dfdfdf);
  border: 1.5px solid;
  border-color: #fff #808080 #808080 #fff;
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.stat-card:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
  box-shadow: 1px 2px 6px rgba(0,0,0,0.15);
  border-color: #808080 #fff #fff #808080;
}

.stat-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.icon-spec-cpu { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23808080" d="M1,1 H15 V15 H1 Z"/><path fill="%23fff" d="M3,3 H13 V13 H3 Z"/><rect x="5" y="5" width="6" height="6" fill="%23316ac5"/></svg>'); }
.icon-spec-ram { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="5" width="14" height="6" fill="%23808080"/><line x1="2" y1="5" x2="2" y2="11" stroke="%23ffff80" stroke-width="2"/><line x1="6" y1="5" x2="6" y2="11" stroke="%23ffff80" stroke-width="2"/><line x1="10" y1="5" x2="10" y2="11" stroke="%23ffff80" stroke-width="2"/></svg>'); }
.icon-spec-disk { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23808080" d="M3,2 H13 C14,2 15,3 15,5 V11 C15,13 14,14 13,14 H3 C2,14 1,13 1,11 V5 C1,3 2,2 3,2 Z"/><circle cx="11" cy="8" r="2" fill="%2333ccff"/></svg>'); }

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

.stat-lbl {
  font-size: 9px;
  color: #555;
  font-weight: bold;
}

.stat-val {
  font-weight: bold;
  font-size: 11px;
}

.comp-bio-box {
  border: 1.5px solid #808080;
  padding: 12px;
  background-color: var(--win-body-bg, #fff);
  line-height: 1.5;
}

.comp-bio-box h3 {
  margin-bottom: 8px;
  font-size: 13px;
  border-bottom: 1.5px solid #bbb;
  padding-bottom: 4px;
}


/* B. Projects Explorer */
.explorer-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: var(--win-bg, #dfdfdf);
  border-bottom: 1.5px solid #808080;
}

.tool-btn {
  padding: 3px 10px;
  border: 1.5px solid;
  border-color: #fff #808080 #808080 #fff;
  cursor: pointer;
  background: var(--win-bg, #dfdfdf);
}

.tool-btn:active:not(:disabled) {
  border-color: #808080 #fff #fff #808080;
}

.tool-btn:disabled {
  color: #888;
  border-color: #e0e0e0;
  cursor: default;
}

.exp-path-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.path-input {
  flex: 1;
  background-color: #fff;
  border: 1.5px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 6px;
  font-size: 11px;
}

.exp-main-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.exp-sidebar {
  width: 140px;
  background-color: var(--win-bg, #dfdfdf);
  border-right: 1.5px solid #808080;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-title {
  font-weight: bold;
  font-size: 11px;
  color: #555;
  border-bottom: 1.5px solid #aaa;
  padding-bottom: 3px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  cursor: pointer;
  padding: 3px 6px;
}

.sidebar-link:hover {
  background-color: rgba(0,0,0,0.05);
}

.sidebar-link.active-link {
  font-weight: bold;
  color: #000080;
}

.exp-content {
  flex: 1;
  background-color: #fff;
  overflow-y: auto;
  padding: 12px;
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.exp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border: 1.5px solid transparent;
}

.exp-item:hover {
  background-color: #f0f4ff;
  border-color: #316ac5;
}

.exp-icon {
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 5px;
  image-rendering: pixelated;
}

.exp-name {
  font-size: 11px;
  word-break: break-word;
}

/* Custom Large Icons */
.icon-folder-large { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23ffd700" d="M1,2 H5 L7,4 H15 V14 H1 Z"/><path fill="%23ffe855" d="M1,4 H15 V14 H1 Z"/></svg>'); }

/* Project detail panels */
.project-details-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-btn {
  align-self: flex-start;
  padding: 2px 8px;
  cursor: pointer;
  border: 1.5px solid;
  border-color: #fff #808080 #808080 #fff;
}

.project-details-panel h2 {
  font-size: 16px;
  font-weight: bold;
}

.tagline {
  font-style: italic;
  color: #555;
  margin-top: -5px;
}

.proj-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0;
}

.badge {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  border-radius: 3px;
}

.badge.mern { background-color: #61dafb; color: #000; }
.badge.db { background-color: #4db33d; }
.badge.backend { background-color: #333333; }
.badge.frontend { background-color: #007acc; }
.badge.node { background-color: #3c873a; }
.badge.socket { background-color: #010101; }
.badge.secure { background-color: #d9534f; }
.badge.expiry { background-color: #f0ad4e; }

.proj-stats-row {
  display: flex;
  gap: 15px;
  background-color: #f5f5f5;
  padding: 8px;
  border: 1.5px dashed #bbb;
}

.p-stat {
  font-size: 11px;
}

.architecture-box {
  margin: 8px 0;
}

.architecture-box h3 {
  font-size: 12px;
  margin-bottom: 4px;
}

.flowchart {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #fbfbfb;
  padding: 10px;
  border: 1.5px solid #ccc;
}

.flow-node {
  padding: 4px 10px;
  border: 1.5px solid #333;
  background-color: #eaf2ff;
  font-weight: bold;
  font-size: 11px;
}

.flow-arrow {
  font-size: 11px;
  color: #777;
}

.terminal-mock {
  background-color: #111;
  color: #0f0;
  font-family: var(--font-family-code);
  padding: 10px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: inset 0px 2px 5px rgba(0,0,0,0.8);
}

.t-line.success { color: #5cb85c; }

.progress-demo-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 5px;
}

.demo-bar {
  width: 100%;
  height: 16px;
  background: #eee;
  border: 1.5px solid #888;
  position: relative;
  overflow: hidden;
}

.demo-progress {
  width: 0%;
  height: 100%;
  background: #5cb85c;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.15s ease;
}

.demo-trigger-btn {
  align-self: flex-start;
  padding: 4px 12px;
  cursor: pointer;
  background: #dfdfdf;
  border: 1.5px solid;
  border-color: #fff #808080 #808080 #fff;
  font-weight: bold;
}


/* C. Skills.exe & Radar Chart */
.skills-wrapper {
  display: flex;
  height: 100%;
}

.skills-sidebar {
  width: 160px;
  background: var(--win-bg, #dfdfdf);
  border-right: 1.5px solid #808080;
  padding: 10px;
}

.skills-sidebar h3 {
  font-size: 12px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid #aaa;
  padding-bottom: 3px;
}

.skills-folder-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-node {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 2px;
  font-size: 11px;
}

.tree-node:hover {
  background-color: rgba(0,0,0,0.05);
}

.tree-node.active-node {
  background-color: var(--menu-hover-bg, #316ac5);
  color: #fff;
  font-weight: bold;
}

.skills-main-panel {
  flex: 1;
  background: #fff;
  padding: 15px;
  overflow-y: auto;
}

.skills-panel-tab {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-panel-tab h2 {
  font-size: 16px;
  font-weight: bold;
}

.skill-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-name {
  width: 140px;
  font-weight: bold;
  font-size: 12px;
}

.skill-track {
  flex: 1;
  height: 18px;
  background-color: #eee;
  border: 1.5px solid #888;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b7af7 0%, #00ff80 100%);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.radar-chart-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.radar-svg {
  width: 250px;
  height: 250px;
}

.grid-poly {
  fill: none;
  stroke: #ccc;
  stroke-width: 0.8px;
}

.spoke {
  stroke: #ddd;
  stroke-dasharray: 2 2;
  stroke-width: 0.8px;
}

.radar-lbl {
  font-family: var(--font-family-sys);
  font-size: 7px;
  fill: #333;
  font-weight: bold;
}

.data-poly {
  fill: rgba(0, 255, 128, 0.28);
  stroke: #00ff80;
  stroke-width: 2px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 128, 0.6));
}

.data-pt {
  fill: #0b7af7;
  stroke: #fff;
  stroke-width: 1px;
}


/* D. MS-DOS Prompt Terminal */
.terminal-container {
  background-color: #000;
  height: 100%;
}

.terminal-body {
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: var(--font-family-code);
  padding: 10px;
  overflow-y: auto;
  line-height: 1.4;
  font-size: 13px;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.term-prompt {
  color: #00ff80;
}

.term-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-family-code);
  font-size: 13px;
  outline: none;
  caret-color: currentColor;
}


/* E. Internet Explorer 6.0 */
.ie-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ie-toolbar {
  background: var(--win-bg, #dfdfdf);
  border-bottom: 1.5px solid #808080;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ie-nav-controls {
  display: flex;
  gap: 2px;
}

.ie-nav-btn {
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  background: var(--win-bg, #dfdfdf);
  border: 1.5px solid;
  border-color: #fff #808080 #808080 #fff;
}

.ie-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ie-address-bar input {
  flex: 1;
  padding: 2px 6px;
  border: 1.5px solid;
  border-color: #808080 #fff #fff #808080;
  outline: none;
  font-size: 11px;
}

.ie-go-arrow {
  padding: 2px 8px;
  background-color: #5cb85c;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 11px;
}

.ie-page-wrapper {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  border: 1.5px solid #808080;
}

.ie-inside-body {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.ie-header-vintage {
  background: linear-gradient(135deg, #0b7af7 0%, #0028a5 100%);
  color: #fff;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.ie-header-vintage h1 {
  font-size: 20px;
  font-weight: bold;
}

.ie-link-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .ie-link-matrix {
    grid-template-columns: 1fr;
  }
}

.ie-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: #f7f9fa;
  border: 1.5px solid #c0c0c0;
  text-decoration: none;
  color: #000;
  transition: all 0.2s ease;
}

.ie-card:hover {
  background-color: #eaf2ff;
  border-color: #0b7af7;
  transform: translateY(-2px);
}

.ie-card-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.ie-card-icon.github { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="3" fill="%23333"/><path d="M8,2 C4.7,2 2,4.7 2,8 C2,10.6 3.7,12.8 6.1,13.6 C6.4,13.7 6.5,13.5 6.5,13.3 C6.5,13.1 6.5,12.6 6.5,12.0 C3.3,12.7 2.6,11.0 2.6,11.0 C2.1,9.7 1.4,9.4 1.4,9.4 C0.4,8.7 1.5,8.7 1.5,8.7 C2.6,8.8 3.2,9.9 3.2,9.9 C4.2,11.6 5.8,11.1 6.4,10.8 C6.5,10.1 6.8,9.6 7.1,9.3 C4.6,9.0 1.9,8.0 1.9,3.7" stroke="%23fff" stroke-width="1.2" fill="none"/></svg>'); }
.ie-card-icon.linkedin { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="2" fill="%230b7af7"/><text x="4" y="12" fill="%23fff" font-family="Arial" font-weight="bold" font-size="11">in</text></svg>'); }
.ie-card-icon.leetcode { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23f0ad4e" d="M12,2 C13,3 13,4 12,5 L8,9 L6,7 L10,3 Z"/><circle cx="5" cy="11" r="3" fill="%23f0ad4e"/></svg>'); }
.ie-card-icon.codechef { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23a55a00" d="M2,14 H14 V12 H2 Z"/><circle cx="8" cy="6" r="4" fill="%23dfdfdf"/></svg>'); }

.ie-card-details h3 {
  font-size: 13px;
  font-weight: bold;
}

.ie-card-details p {
  font-size: 10px;
  color: #666;
  margin: 2px 0;
}

.ie-card-details span {
  font-size: 10px;
  color: #0b7af7;
  font-weight: bold;
}

.ie-resume-panel {
  border: 1.5px solid #0028a5;
  background-color: #f0f4ff;
  padding: 15px;
  text-align: center;
}

.ie-resume-panel h3 {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
}

.ie-download-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #5cb85c;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

.ie-download-btn:hover {
  background-color: #4cae4c;
}

.ie-status-bar {
  background: var(--win-bg, #dfdfdf);
  border-top: 1.5px solid #808080;
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  font-size: 10px;
  color: #555;
}


/* F. Winamp Player */
.winamp-wrapper {
  background-color: #1a1a1a;
  border: 3px solid #333;
  color: #00ff00;
  font-family: var(--font-family-code);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winamp-header {
  background-color: #000;
  border: 1.5px solid #444;
  height: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.winamp-title-scroll {
  white-space: nowrap;
  position: absolute;
  will-change: transform;
}

.winamp-title-scroll span {
  font-size: 11px;
}

.winamp-middle {
  display: flex;
  gap: 8px;
}

.winamp-display {
  flex: 1;
  background-color: #000;
  border: 1.5px solid #444;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-timer {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.wa-spec-grid {
  display: flex;
  flex-direction: column;
  font-size: 8px;
  color: #888;
}

.wa-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  width: 50px;
}

.wa-eq-bar {
  flex: 1;
  height: 100%;
  background-color: #222;
  display: flex;
  align-items: flex-end;
}

.wa-eq-fill {
  width: 100%;
  background-color: #00ff00;
  height: 10%;
  transition: height 0.1s ease;
}

.winamp-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.wa-btn {
  width: 28px;
  height: 18px;
  background-color: #333;
  border: 1.5px solid;
  border-color: #555 #111 #111 #555;
  cursor: pointer;
  position: relative;
}

.wa-btn:active, .wa-btn.active {
  border-color: #111 #555 #555 #111;
  background-color: #222;
}

.wa-btn.prev::before { content: "◀◀"; font-size: 8px; color: #fff; position: absolute; top: 3px; left: 4px; }
.wa-btn.play::before { content: "▶"; font-size: 9px; color: #0f0; position: absolute; top: 3px; left: 10px; }
.wa-btn.pause::before { content: "‖"; font-size: 9px; font-weight: bold; color: #ff0; position: absolute; top: 2px; left: 11px; }
.wa-btn.stop::before { content: "■"; font-size: 9px; color: #f00; position: absolute; top: 3px; left: 10px; }
.wa-btn.next::before { content: "▶▶"; font-size: 8px; color: #fff; position: absolute; top: 3px; left: 5px; }

.winamp-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #555;
}

.winamp-stereo.active { color: #00ff80; font-weight: bold; }


/* G. Achievements Cabinet */
.achieve-wrapper {
  padding: 10px;
}

.achieve-wrapper h2 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.achieve-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.achieve-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f7f9fa;
  border: 1.5px solid #bbb;
  padding: 12px;
}

.badge-illus {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.badge-illus.aws { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="2" fill="%23f0ad4e"/><text x="4" y="11" fill="%23fff" font-family="Arial" font-weight="bold" font-size="8">AWS</text></svg>'); }
.badge-illus.leetcode { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="2" fill="%23ff9900"/><text x="3" y="11" fill="%23fff" font-family="Arial" font-weight="bold" font-size="9">LC</text></svg>'); }
.badge-illus.wce { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polygon points="8,1 15,6 12,14 4,14 1,6" fill="%23d9534f"/><text x="5" y="11" fill="%23fff" font-family="Arial" font-weight="bold" font-size="10">9.1</text></svg>'); }
.badge-illus.cuda { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="2" fill="%2376b900"/><text x="3" y="11" fill="%23fff" font-family="Arial" font-weight="bold" font-size="8">GPU</text></svg>'); }

.achieve-info h3 {
  font-size: 13px;
  font-weight: bold;
}

.ach-date {
  font-size: 10px;
  color: #0b7af7;
  font-weight: bold;
}


/* H. Recycle Bin */
.empty-bin-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: #888;
}

.big-recycle-empty {
  width: 48px;
  height: 48px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23a0a0a0" d="M3,5 L13,5 L12,15 L4,15 Z M5,2 H11 V4 H5 Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  margin-bottom: 10px;
}

.bin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  border-bottom: 1.5px solid #808080;
  margin-bottom: 10px;
}

.bin-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bin-item-row {
  display: flex;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.bin-item-row:hover {
  background-color: #f0f4ff;
  border-color: #316ac5;
}

.bin-row-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  margin-right: 10px;
}

.bin-row-name {
  flex: 3;
  font-weight: bold;
}

.bin-row-size {
  flex: 1;
  color: #666;
}

.bin-row-type {
  flex: 1;
  color: #888;
}

/* Icon image classes */
.icon-my-computer { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="9" fill="%23dfdfdf" stroke="%23333" stroke-width="1.5"/><rect x="4" y="4" width="8" height="5" fill="%230b7af7"/><path fill="%23333" d="M5,11 L11,11 L13,14 L3,14 Z"/></svg>'); }
.icon-explorer { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23ffd700" d="M1,2 H5 L7,4 H15 V14 H1 Z"/><path fill="%23ffe855" d="M1,4 H15 V14 H1 Z"/></svg>'); }
.icon-skills { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%235cb85c" d="M8,1 L15,5 L15,11 L8,15 L1,11 L1,5 Z"/><line x1="8" y1="1" x2="8" y2="15" stroke="%23fff" stroke-width="1.5"/></svg>'); }
.icon-terminal { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" fill="%23111"/><text x="3" y="10" fill="%230f0" font-family="monospace" font-size="8">&gt;_</text></svg>'); }
.icon-ie { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="%2333ccff" stroke="%230050ff" stroke-width="2"/><text x="4" y="12" fill="%230028a5" font-family="Arial" font-weight="bold" font-size="12">e</text></svg>'); }
.icon-winamp { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="12" fill="%231a1a1a"/><polygon points="3,3 13,3 10,7 6,7 13,13 3,13" fill="%2300ff00"/></svg>'); }
.icon-achievements { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23f0ad4e" d="M3,2 H13 V6 C13,9 10,11 8,11 C6,11 3,9 3,6 Z M8,11 V14 H6 V15 H10 V14 H8 Z"/></svg>'); }
.icon-recycle-empty { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23dfdfdf" stroke="%23808080" stroke-width="1.5" d="M3,5 L13,5 L11,15 L5,15 Z"/><line x1="2" y1="3" x2="14" y2="3" stroke="%23808080" stroke-width="2"/></svg>'); }
.icon-recycle-full { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23dfdfdf" stroke="%23808080" stroke-width="1.5" d="M3,5 L13,5 L11,15 L5,15 Z"/><line x1="2" y1="3" x2="14" y2="3" stroke="%23808080" stroke-width="2"/><rect x="5" y="6" width="6" height="6" fill="%23888"/></svg>'); }
.icon-file-txt { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="1" width="12" height="14" fill="%23fff" stroke="%23888"/><line x1="4" y1="4" x2="12" y2="4" stroke="%23888"/><line x1="4" y1="7" x2="10" y2="7" stroke="%23888"/></svg>'); }

/* Small Menu Icons */
.icon-my-computer-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="9" fill="%23dfdfdf" stroke="%23333"/><rect x="4" y="4" width="8" height="5" fill="%230b7af7"/></svg>'); }
.icon-explorer-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23ffd700" d="M1,2 H5 L7,4 H15 V14 H1 Z"/></svg>'); }
.icon-skills-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%235cb85c" d="M8,1 L15,5 L15,11 L8,15 L1,11 L1,5 Z"/></svg>'); }
.icon-terminal-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" fill="%23111"/></svg>'); }
.icon-ie-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="%2333ccff"/></svg>'); }
.icon-winamp-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="12" fill="%231a1a1a"/></svg>'); }
.icon-achievements-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23f0ad4e" d="M3,2 H13 V6 L8,11 L3,6 Z"/></svg>'); }
.icon-recycle-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23dfdfdf" stroke="%23808080" d="M3,5 L13,5 L11,15 L5,15 Z"/></svg>'); }
.icon-shutdown-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="none" stroke="red" stroke-width="2"/><line x1="8" y1="2" x2="8" y2="8" stroke="red" stroke-width="2"/></svg>'); }
.icon-link-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="5" cy="11" r="3" fill="none" stroke="%23333" stroke-width="2"/><circle cx="11" cy="5" r="3" fill="none" stroke="%23333" stroke-width="2"/><line x1="7" y1="9" x2="9" y2="7" stroke="%23333" stroke-width="2"/></svg>'); }

/* ==========================================================================
   9. EXPERIENCE APP, LED LIGHTS, FAKE REDIRECT & TERMINAL OVERRIDES
   ========================================================================== */

/* Experience App Classes */
.experience-wrapper {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
  line-height: 1.4;
}

.experience-header {
  border-bottom: 1.5px solid #bbb;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.experience-header h2 {
  font-size: 15px;
  font-weight: bold;
}

.exp-timeline {
  border-left: 2px dashed #808080;
  padding-left: 18px;
  margin: 10px 0 10px 10px;
}

.exp-node {
  position: relative;
  margin-bottom: 20px;
}

.exp-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: #316ac5;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.exp-node-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background-color: #f7f9fa;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 8px;
}

.exp-company-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-company-title h3 {
  font-size: 13px;
  font-weight: bold;
  margin: 0;
}

.exp-company-title p {
  font-size: 11px;
  color: #555;
  margin: 2px 0 0 0;
}

.exp-meta-info {
  text-align: right;
  flex-shrink: 0;
}

.exp-duration {
  font-size: 11px;
  font-weight: bold;
  color: #333;
}

.exp-badge {
  display: inline-block;
  background-color: #008080;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 3px;
}

.exp-details-list {
  margin: 0 0 0 16px;
  padding: 0;
  list-style-type: square;
  font-size: 11.5px;
  color: #333;
}

.exp-details-list li {
  margin-bottom: 6px;
}

/* System Stats Status LEDs */
.stat-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff00;
  box-shadow: 0 0 4px #00ff00;
  border: 1px solid #006600;
  margin-left: auto;
  align-self: center;
}

.stat-led.blinking {
  animation: led-blink-anim 1s infinite alternate;
}

@keyframes led-blink-anim {
  from { opacity: 0.3; filter: brightness(0.5); }
  to { opacity: 1; filter: brightness(1.3) drop-shadow(0 0 3px #00ff00); }
}

/* Icon SVGs for Experience App */
.icon-experience { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="4" width="12" height="10" rx="1" fill="%23d88d22" stroke="%23333" stroke-width="1.2"/><rect x="5" y="2" width="6" height="3" fill="none" stroke="%23333" stroke-width="1.2"/><rect x="7" y="7" width="2" height="2" fill="%23ffd700" stroke="%23333" stroke-width="1"/></svg>'); }
.icon-experience-sm { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="4" width="12" height="10" rx="1" fill="%23d88d22"/><rect x="5" y="2" width="6" height="3" fill="none" stroke="%23333"/></svg>'); }

/* Fake IE Redirect Modal */
.ie-redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ie-redirect-dialog {
  width: 380px;
  background-color: var(--win-bg, #dfdfdf);
  border: 2px solid;
  border-color: var(--win-border-color, #fff #808080 #808080 #fff);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.5);
  padding: 2px;
}

.ie-redirect-body {
  background-color: #fff;
  padding: 15px;
  border: 1.5px solid #808080;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ie-redirect-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ie-logo-spinning {
  width: 32px;
  height: 32px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="%2333ccff" stroke="%230050ff" stroke-width="2"/><text x="4" y="12" fill="%230028a5" font-family="Arial" font-weight="bold" font-size="12">e</text></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  animation: ie-spin 1.8s linear infinite;
  flex-shrink: 0;
}

@keyframes ie-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ie-redirect-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ie-progress-track {
  width: 100%;
  height: 18px;
  border: 1.5px solid #808080;
  background-color: #dfdfdf;
  padding: 1px;
}

.ie-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, #316ac5, #316ac5 8px, #0b7af7 8px, #0b7af7 16px);
  width: 0%;
  transition: width 0.1s ease;
}

/* Terminal Custom Monochrome Color Themes */
.terminal-body.green-mode {
  color: #00ff00 !important;
}
.terminal-body.green-mode .term-prompt,
.terminal-body.green-mode .term-input {
  color: #00ff00 !important;
}

.terminal-body.amber-mode {
  color: #ffb000 !important;
}
.terminal-body.amber-mode .term-prompt,
.terminal-body.amber-mode .term-input {
  color: #ffb000 !important;
}


