/* Desktop Styling */

.desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.desktop-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
}

.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 80px);
  gap: 16px;
  padding: 10px;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}

.desktop-icon-item {
  width: 80px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
}

.desktop-icon-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.desktop-icon-item.selected {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.desktop-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.desktop-icon-image {
  font-size: 32px;
  line-height: 1;
}

.desktop-icon-label {
  font-size: 12px;
  color: white;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  max-width: 70px;
  font-weight: 500;
}

.context-menu {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  overflow: hidden;
  min-width: 200px;
}

.context-menu.hidden {
  display: none;
}

.context-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-item:hover {
  background: var(--bg-secondary);
}

.context-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* Desktop Environment */
.desktop-environment {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.window-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.window-container > * {
  pointer-events: auto;
}

.notification-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9000;
}

.notification-toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  max-width: 400px;
}

.notification-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.notification-body {
  font-size: 13px;
  color: var(--text-secondary);
}