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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* Desktop Background */
.desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1635805737707-575885ab0820?w=1920');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #ff0000;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  color: white;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.os-name {
  font-weight: bold;
  font-size: 18px;
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
  cursor: default;
}

.app-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.app-button:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
}

.topbar-center {
  font-size: 14px;
  color: #ffcc00;
}

.topbar-right {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #00ff88;
}

/* Window Styles */
.window {
  position: absolute;
  min-width: 400px;
  max-width: 600px;
  background: rgba(10, 10, 10, 0.95);
  border: 3px solid #ff0000;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.6), 0 10px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.window-header {
  background: rgba(255, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 0, 0, 0.5);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  border-radius: 8px 8px 0 0;
}

.window-header:active {
  cursor: grabbing;
}

.window-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

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

.close-button {
  width: 16px;
  height: 16px;
  background: #ff0000;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.close-button:hover {
  background: #cc0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.window-content {
  padding: 24px;
  color: white;
  overflow-y: auto;
  max-height: 500px;
}

.window-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
  font-family: Impact, sans-serif;
}

.window-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.window-content p {
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 15px;
}

.link-button {
  background: #ff0000;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  transition: all 0.3s;
}

.link-button:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.link-button.secondary {
  background: #000;
  border: 2px solid #ff0000;
}

.link-button.secondary:hover {
  background: rgba(255, 0, 0, 0.2);
}

/* Animated Spider */
.spider {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 48px;
  animation: swing 3s ease-in-out infinite;
  z-index: 5;
  cursor: pointer;
  user-select: none;
}

@keyframes swing {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Scrollbar styling */
.window-content::-webkit-scrollbar,
#projectSidebar::-webkit-scrollbar,
#projectContent::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-track,
#projectSidebar::-webkit-scrollbar-track,
#projectContent::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb,
#projectSidebar::-webkit-scrollbar-thumb,
#projectContent::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover,
#projectSidebar::-webkit-scrollbar-thumb:hover,
#projectContent::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}

/* Desktop Icons */
.desktop-icon {
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.desktop-icon:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.desktop-icon.selected .icon-image {
  background: rgba(255, 0, 0, 0.3) !important;
  border: 2px solid #ff0000;
}

.icon-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.icon-label {
  color: white;
  font-size: 13px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Project Sidebar Items */
.project-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.project-item:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
}

.project-item.active {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
}

.project-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: white;
}

.project-item p {
  margin: 0;
  font-size: 11px;
  color: #aaa;
}

/* Dashboard Nav Buttons */
.dashboard-nav-btn:hover {
  background: rgba(255, 0, 0, 0.2) !important;
  border-color: rgba(255, 0, 0, 0.5) !important;
  transform: translateY(-1px);
}

.dashboard-nav-btn.active {
  background: rgba(255, 0, 0, 0.3) !important;
  border-color: #ff0000 !important;
}
