/* main.css, with glass morphsm */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --accent: #7c5cff;
  --accent-dark: #5a3cc9;
  --accent-light: #9a7cff;
  --bg-glass: rgba(15, 15, 25, 0.85);
  --bg-glass-darker: rgba(10, 10, 20, 0.95);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-light: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --danger: #ff5e5e;
  --danger-dark: #cc3a3a;
  --success: #4cd964;
  --warning: #ffcc00;
  --info: #5c7cff;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(124, 92, 255, 0.3);
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  height: 100vh;
  overflow: hidden;
  color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes windowPop {
  0% { transform: scale(0.3); opacity: 0; }
  80% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes windowCloseAnim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.2); opacity: 0; }
}

@keyframes fullscreenEnter {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent); }
}

/* ===== OVERLAYS ===== */
.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 19999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

.fade-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.marquee-selection {
  position: absolute;
  border: 2px solid var(--accent);
  background: rgba(124, 92, 255, 0.15);
  pointer-events: none;
  z-index: 10000;
  display: none;
  border-radius: 4px;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/ee4c29a6-9564-4bee-befd-79a0597c29ca/dhsrl04-16049839-0c0f-4077-977f-09a992ec4b07.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9lZTRjMjlhNi05NTY0LTRiZWUtYmVmZC03OWEwNTk3YzI5Y2EvZGhzcmwwNC0xNjA0OTgzOS0wYzBmLTQwNzctOTc3Zi0wOWE5OTJlYzRiMDcuanBnIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.XIZi3LNLcPUgY_lP-4R7TJ2r6klMfpBRxT7-cMHGvic') center/cover no-repeat;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.login-screen.visible {
  opacity: 1;
  visibility: visible;
}

.login-card {
  position: relative;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 40px;
  width: 400px;
  text-align: center;
  animation: slideUp 0.4s ease;
}

.login-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 16px;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  color: white;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: var(--transition-fast);
}

.login-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition-fast);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.login-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 12px;
}

.register-link {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.register-link:hover {
  color: var(--text-secondary);
}

.register-link span {
  color: var(--accent);
}

/* ===== DESKTOP ===== */
.desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
  z-index: 1;
}

.desktop.visible {
  opacity: 1;
  visibility: visible;
}

.desktop-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.desktop-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

/* ===== WALLPAPER PRESETS ===== */
.wallpaper-solace { background-image: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/ee4c29a6-9564-4bee-befd-79a0597c29ca/dhsrl04-16049839-0c0f-4077-977f-09a992ec4b07.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9lZTRjMjlhNi05NTY0LTRiZWUtYmVmZC03OWEwNTk3YzI5Y2EvZGhzcmwwNC0xNjA0OTgzOS0wYzBmLTQwNzctOTc3Zi0wOWE5OTJlYzRiMDcuanBnIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.XIZi3LNLcPUgY_lP-4R7TJ2r6klMfpBRxT7-cMHGvic'); }
.wallpaper-land { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT7c-QOc5ISuGZ6bmIzNAuOQiz9ngy_UbXvbg&s'); }
.wallpaper-flow { background-image: url('https://i.redd.it/wallpaper-pack-more-in-the-desc-v0-fqzef996ntt81.png?width=6016&format=png&auto=webp&s=194a7425819ef5c1166f88eefeb67f9a758916d4'); }
.wallpaper-liney { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTV-Ul-Y4fhrjfWEFkbxZoQk-jEFZjTv5bRog&s'); }
.wallpaper-reflection { background-image: url('https://i.redd.it/2cpsrvjldn3a1.jpg'); }
.wallpaper-swirl { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQUDodvPd3LCZWdy6YzSHRxdSzu3Wn6cNsUew&s'); }
.wallpaper-morning { background-image: url('https://thumbs.dreamstime.com/b/ethereal-celestial-sunset-sky-grass-silhouette-flaring-light-mystical-landscape-illustration-captures-profound-451909202.jpg'); }
.wallpaper-minecraftian { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSt2kxzqFZR9IrVdWL04CFvDdkI-8hMLz3RSg&s'); }
.wallpaper-jump { background-image: url('https://images.pexels.com/photos/15591636/pexels-photo-15591636/free-photo-of-silhouette-of-a-person-sitting-at-the-edge-of-a-rock-at-sunset.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'); }
.wallpaper-oldenlake { background-image: url('https://images.pexels.com/photos/28318336/pexels-photo-28318336.jpeg?cs=srgb&dl=pexels-ruben-reijgwart-820557011-28318336.jpg&fm=jpg'); }
.wallpaper-minecraftian2 { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ0lUjm8dqO71I0BPnui_mG01bUuNjp0-lu7g&s'); }
.wallpaper-liquid { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRf0ro4HGLM_R577boLd8zMnKibbJAeADUxOw&s'); }

/* ===== DESKTOP ICONS ===== */
.desktop-icons-left, .desktop-icons-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85px;
  padding: 10px 6px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-light);
  z-index: 20;
  pointer-events: auto;
}

.desktop-icon.dragging {
  opacity: 0.7;
  z-index: 1000;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.desktop-icon .icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.desktop-icon .icon img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.desktop-icon .label {
  font-size: 10px;
  text-align: center;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.desktop-icon .unpin-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  cursor: pointer;
  z-index: 25;
  transition: var(--transition-fast);
}

.desktop-icon .unpin-btn:hover {
  transform: scale(1.1);
  background: var(--danger-dark);
}

.desktop-icon:hover .unpin-btn {
  display: flex;
}

/* ===== TASKBAR ===== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: var(--transition-fast);
}

.start-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.start-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.taskbar-apps {
  display: flex;
  gap: 4px;
  flex: 1;
  margin: 0 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.taskbar-app {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  transition: var(--transition-fast);
}

.taskbar-app:hover {
  background: rgba(255, 255, 255, 0.15);
}

.taskbar-app.active {
  background: var(--accent);
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.taskbar-time {
  font-size: 11px;
  font-weight: 500;
}

.taskbar-date {
  font-size: 8px;
  color: var(--text-muted);
}


.recent-apps-row {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 6px 16px;
  z-index: 14;
  display: flex;
  gap: 12px;
  white-space: nowrap;
  cursor: grab;
  transition: var(--transition-fast);
}

.recent-apps-row.dragging {
  cursor: grabbing;
  opacity: 0.8;
}

.recent-apps-title {
  font-size: 10px;
  color: var(--text-muted);
  padding-right: 10px;
  border-right: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
}

.recent-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.recent-app-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.recent-app-icon {
  font-size: 20px;
}

.recent-app-icon img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.recent-app-name {
  font-size: 8px;
  color: var(--text-secondary);
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== WIDGETS ===== */
.desktop-widgets {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 10px;
  z-index: 15;
}

.widget {
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 90px;
  cursor: grab;
  transition: var(--transition-normal);
  position: relative;
}

.widget:hover {
  transform: translateY(-2px);
  background: rgba(25, 25, 35, 0.95);
  border-color: var(--accent);
}

.widget.dragging {
  cursor: grabbing;
  opacity: 0.7;
}

.widget-title {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.widget-time {
  font-size: 20px;
  font-weight: 600;
  font-family: monospace;
}

.widget-date {
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.calendar-day {
  font-size: 22px;
  font-weight: 600;
}

.calendar-month {
  font-size: 9px;
  color: var(--text-secondary);
}

.battery-level {
  font-size: 20px;
  font-weight: 600;
  font-family: monospace;
}

.battery-status {
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.weather-temp {
  font-size: 16px;
  font-weight: 600;
}

.weather-condition {
  font-size: 8px;
  color: var(--text-secondary);
}

/* ===== PANELS ===== */
.widgets-panel, .wallpaper-menu {
  position: fixed;
  bottom: 56px;
  right: 12px;
  width: 240px;
  backdrop-filter: blur(24px);
  background: var(--bg-glass-darker);
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  z-index: 1002;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.widgets-panel.open, .wallpaper-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.widgets-panel-header, .wallpaper-menu-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 12px;
}

.widgets-panel-item, .wallpaper-option {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-fast);
}

.widgets-panel-item:hover, .wallpaper-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wallpaper-preview {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-glass);
}

/* ===== SOUND CONTROL ===== */
.sound-control {
  position: fixed;
  bottom: 12px;
  right: 12px;
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 6px 10px;
  z-index: 15;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sound-control:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

/* ===== START MENU ===== */
.start-menu {
  position: fixed;
  bottom: 52px;
  left: 10px;
  width: 450px;
  backdrop-filter: blur(24px);
  background: var(--bg-glass-darker);
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  z-index: 1001;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  overflow: hidden;
  max-height: 550px;
}

.start-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.start-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(124, 92, 255, 0.05));
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

.start-user-info {
  flex: 1;
}

.start-user-name {
  font-weight: 600;
  font-size: 14px;
}

.start-user-email {
  font-size: 9px;
  color: var(--text-muted);
}

.start-categories {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: thin;
}

.start-cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.start-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.start-cat-btn.active {
  background: var(--accent);
}

.start-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-glass);
}

.start-search input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: white;
  font-size: 12px;
  outline: none;
  transition: var(--transition-fast);
}

.start-search input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.start-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  max-height: 350px;
  overflow-y: auto;
}

.start-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.start-app:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.start-app-icon {
  font-size: 28px;
}

.start-app-icon img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.start-app-name {
  font-size: 10px;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-app-pin {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  color: var(--warning);
  transition: var(--transition-fast);
}

.start-app:hover .start-app-pin {
  opacity: 1;
}

.start-app-pin:hover {
  transform: scale(1.1);
}

/* ===== BOOT MENU ===== */
.boot-menu {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 550px;
  max-width: 90vw;
  backdrop-filter: blur(28px);
  background: var(--bg-glass-darker);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.boot-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.boot-search {
  padding: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.boot-search input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: var(--transition-fast);
}

.boot-search input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.boot-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.boot-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.boot-result:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.boot-result.selected {
  background: var(--accent);
}

.boot-result-icon {
  font-size: 28px;
}

.boot-result-info {
  flex: 1;
}

.boot-result-name {
  font-weight: 500;
  font-size: 13px;
}

.boot-result-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.boot-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-glass);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ===== WINDOWS ===== */
.window {
  position: absolute;
  min-width: 450px;
  min-height: 350px;
  backdrop-filter: blur(4px);
  background: rgba(18, 18, 26, 0.95);
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.window.active {
  z-index: 200;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}

.window.minimized {
  transform: scale(0) !important;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  animation: fullscreenEnter 0.2s ease;
}

.window.maximized .window-header {
  display: none;
}

.window.closing {
  animation: windowCloseAnim 0.2s ease forwards;
  pointer-events: none;
}

.window.opening {
  animation: windowPop 0.2s ease forwards;
}

.window-header {
  padding: 12px 14px;
  background: rgba(25, 25, 35, 0.95);
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}

.window-title img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

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

.window-control {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.window-control:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.window-control.close:hover {
  background: var(--danger);
  color: white;
}

.window-content {
  flex: 1;
  overflow: auto;
  background: rgba(10, 10, 15, 0.95);
  padding: 16px;
}

.window-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  border-radius: 6px;
}

/* ===== RESIZE HANDLES ===== */
.resize-handle {
  position: absolute;
  z-index: 10;
}

.resize-n {
  top: 0;
  left: 10px;
  right: 10px;
  height: 5px;
  cursor: n-resize;
}

.resize-s {
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 5px;
  cursor: s-resize;
}

.resize-w {
  top: 10px;
  left: 0;
  bottom: 10px;
  width: 5px;
  cursor: w-resize;
}

.resize-e {
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 5px;
  cursor: e-resize;
}

.resize-nw, .resize-ne, .resize-sw, .resize-se {
  width: 8px;
  height: 8px;
}

.resize-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
}

.resize-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
}

.resize-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
}

.resize-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}

/* ===== GAME CARD ===== */
.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid var(--border-glass-light);
}

.game-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.game-card-info {
  padding: 10px;
}

.game-card-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-category {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===== GAME MODAL ===== */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.game-modal.open {
  opacity: 1;
  visibility: visible;
}

.game-modal-content {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  border-radius: 20px;
  width: 850px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-glass);
}

.game-modal-header {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.game-modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-modal-header .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.game-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.game-modal-header .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  border-radius: 16px;
  font-size: 10px;
  margin-top: 6px;
}

.game-modal-body {
  padding: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.game-modal-left {
  flex: 2;
}

.game-modal-right {
  flex: 1;
}

.game-description {
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  font-size: 12px;
}

.game-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 11px;
}

.game-play-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.game-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: white;
  z-index: 10;
  transition: var(--transition-fast);
}

.close-modal:hover {
  background: var(--danger);
  transform: scale(1.05);
}

/* ===== TOASTS ===== */
.toast, .toast-large {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 8px 16px;
  color: white;
  font-size: 12px;
  z-index: 20001;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.toast {
  bottom: 60px;
}

.toast-large {
  bottom: 80px;
  border-width: 2px;
  padding: 10px 24px;
  font-size: 13px;
}

.toast.show, .toast-large.show {
  opacity: 1;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
  position: fixed;
  backdrop-filter: blur(20px);
  background: var(--bg-glass-darker);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 180px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--border-glass);
}

.context-menu.visible {
  opacity: 1;
  visibility: visible;
}

.context-menu-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* ===== ACHIEVEMENT POPUP ===== */
.achievement-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 20002;
  transform: translateX(400px);
  transition: transform 0.3s;
  display: flex;
  gap: 10px;
}

.achievement-popup.show {
  transform: translateX(0);
}

.achievement-icon {
  font-size: 28px;
}

.achievement-text {
  flex: 1;
}

.achievement-title {
  font-size: 10px;
  color: var(--warning);
  font-weight: 600;
}

.achievement-name {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.achievement-reward {
  font-size: 10px;
  color: var(--success);
  margin-top: 3px;
}

/* ===== CALCULATOR ===== */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  padding: 10px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-btn:hover {
  background: var(--accent);
  transform: scale(1.02);
}

.calc-mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 6px;
  color: white;
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition-fast);
}

.calc-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calc-mode-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== EMULATOR ITEMS ===== */
.emulator-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.emulator-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .desktop-icons-left,
  .desktop-icons-right,
  .recent-apps-row {
    display: none;
  }
  
  .window {
    min-width: 90vw;
    left: 5vw !important;
    right: 5vw !important;
  }
  
  .start-menu {
    width: 90vw;
    left: 5vw;
    right: 5vw;
    max-width: none;
  }
  
  .boot-menu {
    width: 95vw;
  }
  
  .taskbar-apps {
    max-width: 150px;
  }
  
  .taskbar-app span:last-child {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-card {
    width: 90%;
    padding: 30px 20px;
  }
  
  .game-modal-content {
    width: 95vw;
  }
  
  .game-modal-body {
    flex-direction: column;
  }
}

/* Recent Apps inside Taskbar */
.taskbar-recent {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 8px;
  margin-left: 8px;
  border-left: 1px solid var(--border-glass);
}

.recent-separator {
  width: 1px;
  height: 24px;
  background: var(--border-glass);
  margin: 0 4px;
}

.recent-apps-list {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Style for recent app items inside the taskbar */
.taskbar-recent .recent-app-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

.taskbar-recent .recent-app-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.taskbar-recent .recent-app-icon {
  font-size: 14px;
}

.taskbar-recent .recent-app-icon img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.taskbar-recent .recent-app-name {
  font-size: 10px;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide the old floating recent apps row */
.recent-apps-row {
  display: none !important;
}

/* Stealth App Styles */
.stealth-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    transition: all 0.2s;
}

.stealth-input:focus {
    border-color: #7c5cff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a4a;
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #7c5cff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Profile Buttons */
.profile-btn {
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 30px;
    padding: 6px 14px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: rgba(124, 92, 255, 0.3);
    transform: translateY(-1px);
}

/* KEEP THIS - taskbar clock */
.taskbar-clock {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Inter', monospace;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.taskbar-clock:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-clock #taskbarTime {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.taskbar-clock #taskbarDate {
    font-size: 9px;
    color: var(--text-muted);
}
