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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  background: url('/api/images/75df33d6374b48ebedba67611ac69a30ae82ab2e54929b7996cdd12b48a1bee0') center center / cover no-repeat fixed;
  user-select: none;
}

#root {
  width: 100%;
  height: 100%;
}

.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Window styles */
.aero-window {
  position: absolute;
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  overflow: hidden;
  animation: windowOpen 0.2s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes windowOpen {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes windowClose {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.aero-window.maximized {
  border-radius: 0 !important;
}

.window-titlebar {
  height: 32px;
  min-height: 32px;
  background: linear-gradient(180deg, 
    rgba(200, 218, 240, 0.95) 0%, 
    rgba(160, 190, 225, 0.92) 40%, 
    rgba(130, 165, 210, 0.90) 50%, 
    rgba(150, 180, 220, 0.92) 60%, 
    rgba(180, 205, 235, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  padding: 0 4px 0 8px;
  cursor: default;
  border-bottom: 1px solid rgba(100, 140, 190, 0.4);
  position: relative;
}

.window-titlebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.window-titlebar.focused {
  background: linear-gradient(180deg, 
    rgba(180, 210, 245, 0.97) 0%, 
    rgba(130, 175, 225, 0.95) 40%, 
    rgba(100, 150, 210, 0.93) 50%, 
    rgba(120, 165, 220, 0.95) 60%, 
    rgba(160, 200, 240, 0.97) 100%
  );
}

.window-title {
  font-size: 12px;
  color: #1a1a2e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-left: 4px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

.window-title-icon {
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.window-controls {
  display: flex;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.window-btn {
  width: 28px;
  height: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s;
}

.btn-minimize {
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(200,200,200,0.3));
  color: #333;
  border: 1px solid rgba(100,100,100,0.3);
}
.btn-minimize:hover {
  background: linear-gradient(180deg, rgba(200,220,240,0.8), rgba(160,190,225,0.8));
}

.btn-maximize {
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(200,200,200,0.3));
  color: #333;
  border: 1px solid rgba(100,100,100,0.3);
}
.btn-maximize:hover {
  background: linear-gradient(180deg, rgba(200,220,240,0.8), rgba(160,190,225,0.8));
}

.btn-close {
  background: linear-gradient(180deg, #c75050, #b33a3a);
  color: white;
  border: 1px solid rgba(150,40,40,0.5);
  font-weight: bold;
}
.btn-close:hover {
  background: linear-gradient(180deg, #e05555, #c94444);
}

.window-body {
  background: rgba(255, 255, 255, 0.97);
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(100, 140, 190, 0.3);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(180deg, 
    rgba(30, 55, 95, 0.88) 0%, 
    rgba(15, 35, 65, 0.92) 50%,
    rgba(20, 40, 75, 0.95) 100%
  );
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-top: 1px solid rgba(120, 170, 230, 0.4);
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.start-button {
  width: 50px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(180deg, 
    rgba(80, 130, 200, 0.8) 0%,
    rgba(40, 90, 160, 0.8) 50%,
    rgba(60, 110, 180, 0.8) 100%
  );
  border: 1px solid rgba(100, 160, 230, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  color: white;
  font-size: 20px;
  margin-right: 6px;
}

.start-button:hover {
  background: linear-gradient(180deg, 
    rgba(100, 150, 220, 0.9) 0%,
    rgba(60, 110, 180, 0.9) 50%,
    rgba(80, 130, 200, 0.9) 100%
  );
}

.start-button:active {
  background: linear-gradient(180deg, 
    rgba(40, 90, 160, 0.9) 0%,
    rgba(20, 60, 120, 0.9) 50%,
    rgba(30, 70, 140, 0.9) 100%
  );
}

.taskbar-item {
  height: 36px;
  min-width: 44px;
  max-width: 180px;
  padding: 0 12px;
  margin: 0 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.1s;
}

.taskbar-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.taskbar-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(120, 180, 255, 0.4);
  box-shadow: 0 0 8px rgba(80, 150, 255, 0.2);
}

.taskbar-item.minimized {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.taskbar-clock {
  margin-left: auto;
  color: white;
  font-size: 11px;
  padding: 4px 12px;
  text-align: center;
  line-height: 1.4;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop icons */
.desktop-icon {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}

.desktop-icon:hover {
  background: rgba(100, 160, 230, 0.25);
  outline: 1px solid rgba(100, 160, 230, 0.5);
}

.desktop-icon:active {
  background: rgba(100, 160, 230, 0.4);
}

.desktop-icon-img {
  font-size: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.desktop-icon-label {
  font-size: 11px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
  text-align: center;
  word-wrap: break-word;
  max-width: 72px;
  line-height: 1.3;
}

/* Context menu */
.context-menu {
  position: fixed;
  min-width: 200px;
  background: rgba(245, 248, 252, 0.98);
  border: 1px solid rgba(150, 170, 200, 0.6);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 3px 0;
  z-index: 20000;
  animation: ctxFadeIn 0.1s ease-out;
}

@keyframes ctxFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.context-menu-item {
  padding: 6px 24px;
  font-size: 12px;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.05s;
}

.context-menu-item:hover {
  background: linear-gradient(180deg, #3c8cf5, #2a6ed4);
  color: white;
}

.context-menu-separator {
  height: 1px;
  background: rgba(150, 170, 200, 0.4);
  margin: 3px 0;
}

/* Start menu */
.start-menu {
  position: fixed;
  bottom: 48px;
  left: 0;
  width: 340px;
  background: linear-gradient(180deg, 
    rgba(235, 243, 255, 0.97) 0%,
    rgba(220, 235, 255, 0.97) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 150, 210, 0.5);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  z-index: 15000;
  overflow: hidden;
  animation: startMenuOpen 0.15s ease-out;
}

@keyframes startMenuOpen {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.start-menu-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, #1e5799, #2989d8, #207cca);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.start-menu-item {
  padding: 8px 16px;
  font-size: 12px;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.05s;
}

.start-menu-item:hover {
  background: rgba(60, 140, 245, 0.15);
}

/* Scrollbar styles */
.window-body::-webkit-scrollbar {
  width: 16px;
}
.window-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #ddd;
}
.window-body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #c4c4c4, #b8b8b8);
  border: 1px solid #a0a0a0;
  border-radius: 2px;
}
.window-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #a8a8a8, #9c9c9c);
}

/* Build list styles */
.build-entry {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(200, 210, 225, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
  font-size: 12px;
}

.build-entry:hover {
  background: rgba(60, 140, 245, 0.1);
}

.build-entry:active {
  background: rgba(60, 140, 245, 0.2);
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  min-width: 46px;
  text-align: center;
}

.badge-alpha { background: #c0392b; }
.badge-beta { background: #e67e22; }
.badge-rc { background: #2980b9; }
.badge-rtm { background: #27ae60; }
.badge-release { background: #16a085; }
.badge-preview { background: #8e44ad; }

/* Category tabs */
.category-tab {
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid rgba(180, 195, 215, 0.5);
  background: rgba(240, 245, 252, 0.8);
  color: #445;
  transition: all 0.1s;
  white-space: nowrap;
  border-radius: 3px 3px 0 0;
}

.category-tab:hover {
  background: rgba(220, 235, 255, 0.9);
}

.category-tab.active {
  background: white;
  border-bottom-color: white;
  color: #1a5299;
  font-weight: 600;
}

/* Search bar */
.search-bar {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(180, 195, 215, 0.6);
  border-radius: 3px;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
  outline: none;
  background: white;
  transition: border-color 0.15s;
}

.search-bar:focus {
  border-color: #3c8cf5;
  box-shadow: 0 0 4px rgba(60, 140, 245, 0.3);
}

/* Easter egg animation */
@keyframes legendary {
  0% { box-shadow: 0 0 5px rgba(255, 200, 0, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 200, 0, 0.8), 0 0 40px rgba(255, 150, 0, 0.4); }
  100% { box-shadow: 0 0 5px rgba(255, 200, 0, 0.5); }
}

.legendary-build {
  animation: legendary 2s ease-in-out infinite;
  border-radius: 4px;
}

/* Personalization theme grid */
.theme-card:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .aero-window {
    width: calc(100vw - 10px) !important;
    left: 5px !important;
  }
  
  .taskbar-item span {
    display: none;
  }
  
  .taskbar-item {
    min-width: 36px;
    max-width: 36px;
    justify-content: center;
    padding: 0;
  }
}