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

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

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.apps {
  position: absolute;
  top: 50px;
  left: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.apps label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.app-icon:hover {
  transform: scale(1.05);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apps label span {
  margin-top: 5px;
  font-size: 14px;
  color: white;
  text-shadow: 0 0 5px black;
}

.window {
  display: none;
  position: absolute;
  top: 100px;
  left: 300px;
  width: 1500px;
  height: 1000px;
  background: white;
  border: 2px solid #333;
  z-index: 10;
  border-radius: 15px;
  flex-direction: column;
}

.window iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: none;
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: red;
  color: white;
  padding: 2px 6px;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
  border-radius: 5px;
}

#app-note:checked ~ #window-note,
#app-weather:checked ~ #window-weather,
#app-homeworks:checked ~ #window-homeworks,
#app-brave:checked ~ #window-brave,
#app-discord:checked ~ #window-discord,
#app-youtube:checked ~ #window-youtube,
#app-vscode:checked ~ #window-vscode,
#app-whatsapp:checked ~ #window-whatsapp,
#app-spotify:checked ~ #window-spotify,
#app-steam:checked ~ #window-steam,
#app-facebook:checked ~ #window-facebook {
  display: flex;
}

.task-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(50, 50, 50, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  z-index: 999;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.3);
}

.task-bar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-bar__start {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-bar__start img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.task-bar__apps {
  display: flex;
  gap: 8px;
}

.task-bar__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.task-bar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.task-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.1rem;
  text-shadow: 0 0 3px black;
}

.task-bar__time {
  min-width: 60px;
  text-align: right;
}

.title-bar {
  height: 30px;
  background: #444;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  cursor: move;
  display: flex;
  align-items: center;
  user-select: none;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
