:root {
  --bg-color: #0a100e;
  --window-rgb: 255, 255, 255;
  --taskbar-rgb: 255, 255, 255;
  --accent-color: #d99a5c;
  --text-color: #f3f1ea;
  --bg-opacity: 0.15;
  --glass-blur: 15px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;  
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
  background-size: cover;
  background-position: center;
}

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #0f0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  font-size: 20px;
}

#desktop {
  flex-grow: 1;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.icon {
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  position: absolute; 
  user-select: none;
}

.icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.icon span {
  font-size: 32px;
  display: block;
  margin-bottom: 5px;
}

.icon p {
  font-size: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}


.window {
  position: absolute;
  width: 400px;
  background-color: rgba(var(--window-rgb), var(--bg-opacity));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border 0.3s ease;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.window.hidden {
  display: none;
}

.window-header {
  background-color: transparent;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.close-btn {
  background-color: #f38ba8;
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
}

.window-content {
  padding: 20px;
  min-height: 200px;
  background-color: rgba(0, 0, 0, 0.15);
}

#term-output {
  font-family: "Courier New", Courier, monospace;
  color: #a6e3a1;
  height: 150px;
  overflow-y: auto;
  margin-bottom: 10px;
}

#term-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 100%;
  padding: 5px;
  font-family: monospace;
}

.telemetry-line {
  font-family: monospace;
  margin-bottom: 8px;
  font-size: 13px;
}

.telemetry-val {
  color: var(--accent-color);
  font-weight: bold;
}


#taskbar {
  height: 50px;
  background-color: rgba(var(--taskbar-rgb), var(--bg-opacity));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 9999;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

#clock {
  font-family: monospace;
  margin-left: auto;
}

.dock {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(var(--taskbar-rgb), var(--bg-opacity));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 9990;
}

.dock-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  user-select: none;
}

.dock-item:hover {
  transform: scale(1.15) translateY(-5px);
}


.theme-btn {
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-weight: bold;
  transition: 0.2s;
}

.theme-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.control-group {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.control-group label {
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  opacity: 0.8;
}


#context-menu {
  position: absolute;
  width: 220px;
  background-color: rgba(var(--window-rgb), var(--bg-opacity));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 6px;
  z-index: 100000;
}

@media (pointer: fine) {
  body.cursor-fx-on, body.cursor-fx-on * {
    cursor: none;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background-color 0.15s, opacity 0.15s;
  box-shadow: 0 0 15px var(--accent-color);
}

.custom-cursor.cursor-hover {
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  opacity: 0.5;
}

.custom-cursor.hidden-cursor,
#cursor-trail-canvas.hidden-cursor {
  display: none;
}

#cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999998;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--accent-color), transparent 70%);
}

#desktop {
  position: relative;
  z-index: 1;
}

.window-header {
  position: relative;
  overflow: hidden;
}

.window-header.shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmerSweep 1s ease;
  pointer-events: none;
}

@keyframes shimmerSweep {
  to {
    left: 150%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor,
  #cursor-trail-canvas,
  .glow-orb {
    display: none !important;
  }
}

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

.context-item {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.context-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.context-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}


#toast-container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999999;
  pointer-events: none;
}
.toast {
  background: rgba(var(--window-rgb), var(--bg-opacity));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-width: 250px;
}
.toast strong {
  color: var(--accent-color);
  margin-bottom: 4px;
  font-size: 14px;
}
.toast span {
  font-size: 12px;
}
#notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: rgba(var(--window-rgb), calc(var(--bg-opacity) + 0.3));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 999998;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
#notification-panel.hidden {
  display: none;
}
.notif-panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-panel-header button {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--text-color);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.notif-panel-header button:hover {
  background: var(--accent-color);
  color: #000;
}
#notif-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notif-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.notif-header strong {
  color: var(--accent-color);
  font-size: 13px;
}
.notif-header small {
  opacity: 0.6;
  font-size: 11px;
}
.notif-item div {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}
#taskbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
#notif-bell {
  position: relative;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
#notif-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-color);
  color: #000;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#notif-badge.hidden {
  display: none;
}

#boot-screen {
  background: #0d0e15;
  color: #a6e3a1;
  z-index: 9999999; 
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px;
  transition: opacity 0.6s ease;
}
#boot-console {
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.6; 
}
#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999998;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}
.lock-content {
  text-align: center;
  color: var(--text-color); 
}
.lock-content h1 {
  font-size: 6rem;
  margin-bottom: 20px;
  font-weight: 200;
  letter-spacing: 2px;
}
.user-avatar {
  font-size: 4rem;
  background: rgba(255,255,255,0.05);
  width: 120px;
  height: 120px;
  line-height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.unlock-btn {
  margin-top: 30px;
  padding: 12px 30px;
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s; 
  font-size: 16px;
}
.unlock-btn:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px var(--accent-color); 

}

.window {
    opacity: 0.85; 
      transition: opacity 0.3s, border 0.3s, width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.window.focused {
    opacity: 1;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
}
.window.maximized { border-radius: 0; }
.window-controls { display: flex; gap: 8px; }
.win-btn {
    width: 14px; height: 14px; border-radius: 50%; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
        font-size: 9px; color: transparent; transition: color 0.2s; font-weight: bold;
}
.window-header:hover .win-btn { color: rgba(0,0,0,0.6); }
.close-btn { background-color: #ff5f56; }
.min-btn { background-color: #ffbd2e; }
.max-btn { background-color: #27c93f; }


#taskbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; z-index: 999997;
}
#start-btn {
  display: flex; align-items: center; cursor: pointer; font-weight: bold;
  padding: 5px 12px; border-radius: 8px; transition: background 0.2s;
}
#start-btn:hover { background: rgba(255, 255, 255, 0.1); }

#launchpad {
  position: fixed; bottom: 50px; left: 10px; width: 400px; max-height: 500px;
  background: rgba(var(--window-rgb), calc(var(--bg-opacity) + 0.5));
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5); z-index: 999996;
  display: flex; flex-direction: column; padding: 20px;
  transition: opacity 0.2s, transform 0.2s; transform-origin: bottom left;
}
#launchpad.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }

.lp-search-container { margin-bottom: 20px; }
#lp-search {
  width: 100%; padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2); color: var(--text-color); font-size: 14px; outline: none;
}
#lp-search:focus { border-color: var(--accent-color); }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; overflow-y: auto; }
.lp-icon {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  padding: 15px 5px; border-radius: 10px; transition: background 0.2s; text-align: center;
}
.lp-icon:hover { background: rgba(255,255,255,0.1); }
.lp-icon span { font-size: 32px; margin-bottom: 8px; }
.lp-icon p { font-size: 12px; opacity: 0.9; }


@keyframes spin { 100% { transform: rotate(360deg); } }
.vinyl-record {
  width: 80px; height: 80px; border-radius: 50%;
  background: repeating-radial-gradient( #111, #111 4px, #222 5px, #222 6px );
  border: 2px solid #333; animation: spin 3s linear infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
}
.vinyl-label {
  width: 26px; height: 26px; background: var(--accent-color);
  border-radius: 50%; border: 2px solid #000;
}