/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.loading-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.windows-logo {
  width: 150px;
  margin-bottom: 20px;
}

.loading-text {
  font-family: Tahoma, sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Progress Bar */
.progress-bar {
  width: 200px;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #666;
  margin-top: 20px;
  position: relative;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.progress {
  height: 100%;
  width: 30px;
  background-color: #0078d4;
  animation: loading-segment 1s infinite;
  border-radius: 10px;
  position: absolute;
}

@keyframes loading-segment {
  0% { left: -30px; }
  50% { left: 85px; }
  100% { left: 200px; }
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Tahoma, sans-serif;
}

/* Desktop */
.desktop {
  background-image: url('/xp-wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Desktop Icons */
.desktop-icon {
  width: 64px;
  text-align: center;
  color: white;
  position: absolute;
  cursor: pointer;
  font-size: 12px;
}

.desktop-icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}

.desktop-icon p {
  margin: 0;
  font-size: 12px;
}

.desktop-icon:nth-child(1) {
  top: 20px;
  left: 20px;
}

.desktop-icon:nth-child(2) {
  top: 20px;
  left: 100px;
}

.desktop-icon:nth-child(3) {
  top: 20px;
  left: 180px;
}

.desktop-icon:nth-child(4) {
  top: 20px;
  left: 260px;
}

.desktop-icon:nth-child(5) {
  top: 100px;
  left: 20px;
}

.terminal {
  width: 600px;
  height: 400px;
  background-color: black;
  color: white;
  position: absolute; /* Обязательно для перемещения */
  top: 100px;
  left: 100px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  border: 2px solid #333;
  z-index: 100; /* Поверх остальных элементов */
}


/* CMD Body */
.cmd-body {
  font-family: "Lucida Console", Monaco, monospace;
  overflow-y: auto;
  padding: 10px;
  max-height: calc(100% - 40px);
  line-height: 1.4;
}

#output {
  display: flex;
  flex-direction: column;
  white-space: pre-wrap;
  word-wrap: break-word;
  gap: 0;
}

#output div {
  margin-bottom: 2px;
}

#cmd-input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  bottom: 0;
  left: 0;
}

.blinking-cursor {
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Title bar controls */
.title-bar {
  background-color: #333;
  color: white;
  padding: 5px;
  display: flex;
  justify-content: space-between;
}

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

.window-controls button {
  background: #333;
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.window-controls button:hover {
  background: #555;
}

/* Taskbar */
.taskbar {
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #1f4a96, #0b3267);
  color: white;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 0;
  box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.5);
}

/* Start Button */
.start-button {
  background: linear-gradient(to bottom, #6fa83b, #4b7d2b);
  color: white;
  font-weight: bold;
  padding: 5px 20px;
  border: 1px solid #3e763a;
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.5), 2px 2px 5px rgba(0, 0, 0, 0.3);
  height: 100%;
  margin-right: 5px;
  margin-left: 0;
  font-size: 16px;
}

.start-button::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('start-icon.png');
  background-size: contain;
  margin-right: 6px;
}

.start-button:hover {
  background: linear-gradient(to bottom, #7cb550, #588b37);
}

/* System Tray */
.tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 10px;
  font-size: 12px;
  color: #ffffff;
}

.tray-item {
  margin-left: 10px;
  display: flex;
  align-items: center;
}

#date-time {
  text-align: right;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
}

.system-info {
  width: 400px;
  background-color: #f3f3f3;
  color: black;
  border: 2px solid #333;
  position: absolute; /* Позиционирование для перемещения */
  font-family: Tahoma, sans-serif;
  display: none;
  z-index: 10;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  padding: 0;
  overflow: hidden;
}


.system-info .title-bar {
  background-color: #0b3267;
  color: white;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-info .title-bar span {
  font-weight: bold;
}

.system-info .system-body {
  padding: 15px;
  background-color: #ece9d8;
}

.system-info h2 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.system-info p {
  font-size: 14px;
  margin-bottom: 5px;
}

.system-info hr {
  border: none;
  border-top: 1px solid #666;
  margin: 10px 0;
}

.system-info .ok-button {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: #ece9d8;
}

.system-info .ok-button button {
  padding: 5px 20px;
  font-size: 14px;
  font-family: Tahoma, sans-serif;
  background-color: #e1e1e1;
  border: 1px solid #888;
  cursor: pointer;
}

.system-info .ok-button button:hover {
  background-color: #d1d1d1;
}
