* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  user-select: none;
}

/* Vista Aurora Wallpaper */
.vista-wallpaper {
  position: fixed;
  inset: 0;
  background: #0a0a1a;
  overflow: hidden;
}

.vista-wallpaper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 10% 90%, rgba(30, 80, 180, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 80%, rgba(20, 120, 200, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 70% 70%, rgba(50, 180, 120, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 30% 75%, rgba(100, 50, 180, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 140% 50% at 60% 85%, rgba(10, 60, 120, 0.6) 0%, transparent 50%);
}

.vista-wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 200% 80% at 40% 100%, rgba(20, 100, 180, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 80% 60%, rgba(0, 180, 100, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(80, 20, 150, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,10,30,0.5) 100%);
}

/* Aero Glass Effect */
.aero-glass {
  background: rgba(40, 60, 100, 0.45);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 1px rgba(255,255,255,0.3) inset,
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(100, 150, 255, 0.05);
}

.aero-glass-light {
  background: rgba(200, 220, 255, 0.15);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(40, 60, 100, 0.65) 0%, rgba(20, 30, 60, 0.8) 100%);
  backdrop-filter: blur(30px) saturate(2);
  -webkit-backdrop-filter: blur(30px) saturate(2);
  border-top: 1px solid rgba(150, 180, 255, 0.3);
  display: flex;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
}

/* Start Button */
.start-btn {
  width: 54px;
  height: 36px;
  margin: 0 4px;
  border-radius: 0 12px 12px 0;
  background: radial-gradient(ellipse at center, rgba(80, 160, 80, 0.9) 0%, rgba(40, 100, 40, 0.95) 60%, rgba(20, 60, 20, 0.9) 100%);
  border: 1px solid rgba(150, 255, 150, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow:
    0 0 8px rgba(100, 200, 100, 0.3),
    0 1px 0 rgba(255,255,255,0.2) inset;
  position: relative;
  overflow: hidden;
}

.start-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 20%;
  right: 20%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
  border-radius: 50%;
}

.start-btn:hover {
  background: radial-gradient(ellipse at center, rgba(100, 200, 100, 0.95) 0%, rgba(60, 140, 60, 0.95) 60%, rgba(30, 80, 30, 0.95) 100%);
  box-shadow:
    0 0 16px rgba(100, 200, 100, 0.5),
    0 1px 0 rgba(255,255,255,0.3) inset;
}

.start-btn:active {
  transform: scale(0.95);
}

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: 44px;
  left: 4px;
  width: 380px;
  border-radius: 8px;
  overflow: hidden;
  animation: startMenuIn 0.2s ease-out;
  z-index: 10000;
}

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

/* Window styles */
.vista-window {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(255,255,255,0.2);
  min-width: 300px;
  min-height: 200px;
}

.window-titlebar {
  height: 30px;
  background: linear-gradient(180deg, rgba(80, 120, 200, 0.6) 0%, rgba(40, 70, 140, 0.5) 50%, rgba(30, 50, 100, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: move;
}

.window-titlebar .title {
  color: white;
  font-size: 12px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  flex: 1;
  padding-left: 4px;
}

.window-btn {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  border: none;
  margin-left: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  transition: all 0.1s;
}

.window-btn-minimize {
  background: linear-gradient(180deg, rgba(100,140,200,0.6), rgba(60,100,160,0.6));
  border: 1px solid rgba(255,255,255,0.2);
}

.window-btn-maximize {
  background: linear-gradient(180deg, rgba(100,140,200,0.6), rgba(60,100,160,0.6));
  border: 1px solid rgba(255,255,255,0.2);
}

.window-btn-close {
  background: linear-gradient(180deg, rgba(200,80,60,0.8), rgba(160,40,30,0.8));
  border: 1px solid rgba(255,100,80,0.3);
}

.window-btn-close:hover {
  background: linear-gradient(180deg, rgba(240,100,80,0.9), rgba(200,60,40,0.9));
  box-shadow: 0 0 8px rgba(255,80,60,0.4);
}

.window-body {
  background: rgba(240, 240, 245, 0.95);
  color: #222;
}

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

.desktop-icon:hover {
  background: rgba(100, 150, 255, 0.2);
}

.desktop-icon.selected {
  background: rgba(100, 150, 255, 0.35);
  outline: 1px solid rgba(100, 150, 255, 0.5);
}

.desktop-icon .icon-img {
  font-size: 32px;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

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

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 160px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.widget {
  border-radius: 6px;
  background: rgba(20, 30, 60, 0.55);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(255,255,255,0.15) inset;
  overflow: hidden;
  color: white;
}

.widget-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 5px 8px 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Analog Clock */
.clock-face {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(80,100,150,0.4), rgba(20,30,60,0.6));
  border: 2px solid rgba(255,255,255,0.2);
  margin: 8px auto;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
}

.clock-hour {
  width: 3px;
  height: 30px;
  background: white;
  margin-left: -1.5px;
}

.clock-minute {
  width: 2px;
  height: 40px;
  background: rgba(200,220,255,0.9);
  margin-left: -1px;
}

.clock-second {
  width: 1px;
  height: 45px;
  background: rgba(255,100,100,0.8);
  margin-left: -0.5px;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}

.clock-marker {
  position: absolute;
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  top: 4px;
  left: 50%;
  margin-left: -1px;
  transform-origin: center 56px;
}

/* Startup animation */
.startup-overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1.5s ease-in-out 1s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

.startup-logo {
  color: white;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  animation: logoIn 0.8s ease-out;
  text-shadow: 0 0 30px rgba(100,150,255,0.5);
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

/* Sticky Note */
.sticky-note-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  color: #444;
  padding: 6px 8px;
  line-height: 1.4;
}

/* Calculator */
.calc-btn {
  background: linear-gradient(180deg, #f5f5f5, #e0e0e0);
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  transition: all 0.1s;
}

.calc-btn:hover { background: linear-gradient(180deg, #fff, #eee); }
.calc-btn:active { background: linear-gradient(180deg, #ddd, #ccc); transform: scale(0.97); }

.calc-btn-op {
  background: linear-gradient(180deg, #f0e8d8, #ddd0b8);
  border-color: #b0a080;
}

.calc-btn-eq {
  background: linear-gradient(180deg, #c8d8f0, #a0b8d8);
  border-color: #8098b8;
}

/* Performance graph */
@keyframes cpuPulse {
  0%, 100% { height: 30%; }
  25% { height: 65%; }
  50% { height: 45%; }
  75% { height: 80%; }
}

/* Footer */
.vista-footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 10px;
}
.vista-footer a:hover { color: rgba(255,255,255,0.7); }