body, html {
  margin: 0;
  padding: 0;
  font-family: 'Tahoma', sans-serif;
  height: 100%;
  overflow: hidden;
  background: url('wp.jpg') no-repeat center center fixed;
  background-size: cover;
}

.desktop {
  position: relative;        /* needed for absolute-positioned selection box */
  width: 100%;               /* full width */
  height: 100vh;             /* full viewport height */
  overflow: hidden;          /* prevent scrollbars from appearing */
  user-select: none;         /* prevent text selection while dragging */
  z-index: 0;                /* behind windows and taskbar */
}

/* Selection box for desktop */
.selection-box {
  position: absolute;
  border: 1px dotted #000;
  background: rgba(0, 100, 200, 0.1);
  pointer-events: none;
  z-index: 50;
}

/* Okno ruchome */
#bio-window {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  z-index: 10;
}

#img-window {
  position: absolute;
  top: 5%;
  left: 30%;
  transform: translateX(-50%);
  width: 400px;
  z-index: 10;
}

#inform-window{
    position: absolute;
  top: 300px;
  left: 80%;
  transform: translateX(-50%);
  width: 400px;
  z-index: 10;
}

.imggif{
    height: 30px;
    width: 100%;
    top: 0;
    left: 0;
}

#music-window {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  z-index: 10;
}

#music-window button {
  margin-right: 5px;
  cursor: pointer;
}

#volume-slider {
  width: 100%;
  margin-top: 10px;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: url(TaskbarBackground.png); /* Windows XP blue */
    display: flex;
    align-items: center;
    padding: 0 0px;
    box-sizing: border-box;
  }

  .start-button {
    height: 100%; /* fills full taskbar height */
    display: flex;
    align-items: center; /* centers text/icon inside button vertically */
    justify-content: center;
    background: url(TaskbarGreenBar.png) no-repeat center center;
    background-size: cover;
    width: 130px;
    margin-right: 10px;
    padding: 0;
    font-family: "Tahoma", sans-serif;
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
}

  .taskbar-icons {
    height: 100%; /* fills full taskbar height */
    display: flex;
    align-items: center; /* centers text/icon inside button vertically */
    justify-content: center;
    background: url(WindowNotClicked.png) no-repeat center center; /* Default to unclicked state */
    background-size: cover;
    width: 130px;
    margin-right: 10px;
    margin-top: 5px;
    padding: 0;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    transition: background-image 0.2s ease; /* Smooth transition between states */
  }

  /* Ensure the taskbar icons handle dynamic background changes properly */
  .taskbar-icons.active {
    background-image: url(WindowClickedTaskbar2.png);
  }

  .taskbar-icons.inactive {
    background-image: url(WindowNotClicked.png);
  }

  .taskbariconimg{
    height: 20px;
  }

  .taskbar-clock {
    color: white;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    margin-left: auto;
    margin-right: 5px;
  }

  #start-menu {
  position: absolute;
  bottom: 28px; /* sits right above the taskbar */
  left: 0;
  height: 60%;
  width: 25%;
  background: url('StartMenu.png') no-repeat top left;
  background-size: 100% 100%; /* stretch to fill div */
  padding: 2px;
  padding-top: 4%;
  box-sizing: border-box;
  z-index: 200;
  color: rgb(21, 21, 22);
  font-family: "Tahoma", sans-serif;
  cursor: default;
  display: flex;
  flex-direction: column; /* stack items vertically */
  gap: 5px; /* spacing between items */
  overflow: hidden;
}

.start-menu-item {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.2); /* overlay for readability */
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.start-menu-item:hover {
  background: rgba(0, 120, 215, 0.5); /* XP blue hover effect */
}

#cmd-window {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#cmd-window input {
  /* XP.css base style */
  padding: 2px 4px;
  border: 2px inset #ccc;       /* XP-style inset */
  border-radius: 2px;
  background: black;             /* keep black background */
  color: lime;
  font-family: monospace;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;

  /* XP.css focus style */
  box-shadow: inset 1px 1px 0px #fff, inset -1px -1px 0px #000;
  caret-color: lime;
}

#cmd-window input:focus {
  border-color: #000;
  box-shadow: inset 1px 1px 0px #fff, inset -1px -1px 0px #000;
}

/* Command output styling */
#cmd-output {
  background: black !important;
  color: lime !important;
  font-family: monospace !important;
  padding: 10px !important;
  height: 200px !important;
  overflow-y: auto !important;
  font-size: 12px !important;
  white-space: pre-wrap !important;
  border: 2px inset #ccc;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0px #fff, inset -1px -1px 0px #000;
}

/* Desktop context menu */
#desktop-context-menu {
  position: absolute;
  display: none;
  background: #f0f0f0;
  border: 1px solid #999;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  min-width: 120px;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
}

.context-menu-item {
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
}

.context-menu-item:hover {
  background: #0066cc;
  color: white;
}

.context-menu-separator {
  height: 1px;
  background: #999;
  margin: 2px 0;
}

/* Notification system */
.notification {
  position: fixed;
  right: 20px;
  bottom: 40px;
  background: #f0f0f0;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  padding: 12px;
  max-width: 300px;
  font-family: 'Tahoma', sans-serif;
  font-size: 12px;
  z-index: 1001;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: #ddd;
  border-radius: 2px;
}

.notification-info {
  border-left: 4px solid #0066cc;
}

.notification-success {
  border-left: 4px solid #00aa00;
}

.notification-warning {
  border-left: 4px solid #ff9900;
}

.notification-error {
  border-left: 4px solid #cc0000;
}

/* Enhanced window animations */
.window {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Button hover effects */
.window button:hover {
  background: #e0e0e0 !important;
}

.taskbar-icons:hover {
  filter: brightness(1.1);
}

.start-button:hover {
  filter: brightness(1.1);
}

/* Title bar cursor */
.title-bar {
  cursor: grab;
}

.title-bar:active {
  cursor: grabbing;
}

/* Music player enhancements */
#music-window button {
  transition: opacity 0.2s ease;
}

#volume-slider:hover, #progress-slider:hover {
  cursor: pointer;
}

/* Start menu animations */
#start-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* MOBILE ONLY CHANGES - Only applied on small screens */
@media (max-width: 767px) {
  body, html {
    overflow-y: auto; /* Allow scrolling on mobile */
  }
  
  .desktop {
    overflow-y: auto; /* Allow scrolling on mobile */
    padding-bottom: 60px; /* Space for larger mobile taskbar */
  }
  
  /* Stack windows vertically on mobile */
  .window {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin: 10px;
    width: calc(100% - 20px);
    max-width: 400px;
  }
  
  /* Make taskbar taller for easier touch */
  .taskbar {
    height: 50px;
    overflow-x: auto;
  }
  
  .start-button {
    min-height: 44px;
    min-width: 80px;
    font-size: 14px;
  }
  
  .taskbar-icons {
    min-height: 44px;
    min-width: 80px;
    font-size: 11px;
    margin-top: 0;
  }
  
  /* Make start menu wider on mobile */
  #start-menu {
    width: 80%;
    max-width: 300px;
    bottom: 50px;
  }
  
  /* Touch-friendly start menu items */
  .start-menu-item {
    padding: 12px 15px;
    min-height: 44px;
    box-sizing: border-box;
  }
  
  /* Larger input for mobile */
  #cmd-window input {
    font-size: 16px;
    padding: 8px 12px;
    min-height: 44px;
  }
  
  /* Touch-friendly buttons */
  button {
    min-height: 44px;
    padding: 8px 12px;
  }
  
  /* Music player touch improvements */
  #volume-slider, #progress-slider {
    height: 44px;
  }
}