/* theme-aero.css — Windows Vista/7 Aero glass theme (taskbar, start menu, glass windows, peek, shake) */

/* ==========================================
   Windows Vista / 7 Aero Complete Theme
   ========================================== */

/* ------------------------------------------
   1. TASKBAR & SYSTEM TRAY
   ------------------------------------------ */
body.theme-aero .taskbar,
body.theme-aero #taskbar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(72, 139, 209, 0.3) 25%,
    rgba(15, 35, 65, 0.65) 100%
  ) !important;
  backdrop-filter: blur(16px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  height: 38px !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999990 !important;
  box-sizing: border-box !important;
}

/* Hide legacy Win9x divider in Aero mode */
body.theme-aero .taskbar .taskbar-divider {
  display: none !important;
}

/* Middle app tabs container */
body.theme-aero .taskbar .taskbar-tasks {
  display: flex !important;
  flex: 1 !important;
  gap: 4px !important;
  align-items: center !important;
  margin: 0 6px !important;
  overflow-x: auto !important;
}

/* Aero Start Orb Button */
body.theme-aero .start-btn#start-button,
body.theme-aero .start-button {
  background: url("../assets/images/orb/orb.png") center/contain no-repeat !important;
  border: none;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(0, 162, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

body.theme-aero .start-btn#start-button .start-flag {
  font-size: 10px !important;
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9) !important;
}

body.theme-aero .start-btn#start-button:hover,
body.theme-aero .start-button:hover {
  filter: brightness(1.25) !important;
  box-shadow: 0 0 14px rgba(0, 200, 255, 1), inset 0 1px 3px #ffffff !important;
  transform: scale(1.05) !important;
}

/* Taskbar App Tabs Styling ONLY (No layout/display forcing) */
body.theme-aero .task-tab,
body.theme-aero .taskbar-item {
  height: 28px !important;
  padding: 0 10px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.15) 51%,
    rgba(255, 255, 255, 0.15) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  font-size: 11px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: none !important;
}

/* Active window state tab */
body.theme-aero .task-tab.active,
body.theme-aero .taskbar-item.active {
  background: linear-gradient(
    180deg,
    rgba(200, 235, 255, 0.6) 0%,
    rgba(120, 185, 245, 0.3) 50%,
    rgba(10, 80, 160, 0.55) 51%,
    rgba(30, 130, 230, 0.65) 100%
  ) !important;
  border-color: rgba(200, 240, 255, 0.9) !important;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.7), 0 0 10px rgba(0, 150, 255, 0.7) !important;
}

/* System Tray Clock */
body.theme-aero .system-tray,
body.theme-aero #system-tray {
  background: rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  height: 24px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
}

/* ==========================================
   AERO PEEK (Windows 7 Theme Exclusive)
   ========================================== */

/* Hidden by default on non-Aero themes */
#aero-peek-bar {
  display: none;
}

/* Enabled strictly for Windows 7 / Aero Theme */
body.theme-aero #aero-peek-bar {
  display: block;
  width: 14px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.35) 100%
  );
  cursor: pointer;
  margin-left: 4px;
}

body.theme-aero #aero-peek-bar:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Glass Wireframe effect for previewed windows */
body.theme-aero .hybrid-window.aero-peek-active,
body.theme-aero .window.aero-peek-active {
  opacity: 0.12 !important;
  pointer-events: none !important;
  filter: blur(2px) grayscale(50%) !important;
  transition: opacity 0.22s ease, filter 0.22s ease !important;
}

/* ==========================================
   AERO SHAKE (Windows 7 Theme Exclusive)
   ========================================== */

/* Shaken-off (minimized) window transition */
body.theme-aero .hybrid-window.aero-shaken,
body.theme-aero .window.aero-shaken {
  opacity: 0 !important;
  transform: scale(0.85) translateY(30px) !important;
  pointer-events: none !important;
  transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.25s ease !important;
}

/* Glass Shake Keyframe Animation */
@keyframes aeroGlassShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-10px, 0); }
  40% { transform: translate(10px, 0); }
  60% { transform: translate(-8px, 0); }
  80% { transform: translate(8px, 0); }
  100% { transform: translate(0, 0); }
}

body.theme-aero .hybrid-window.is-shaking,
body.theme-aero .window.is-shaking {
  animation: aeroGlassShake 0.35s ease-in-out !important;
}


/* ------------------------------------------
   2. START MENU
   ------------------------------------------ */
body.theme-aero .start-menu,
body.theme-aero #start-menu {
  background: rgba(15, 35, 65, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  bottom: 38px !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

body.theme-aero .start-menu *,
body.theme-aero #start-menu * {
  pointer-events: auto !important;
}

body.theme-aero .start-menu button,
body.theme-aero .start-menu a,
body.theme-aero .start-menu .start-menu-item,
body.theme-aero #start-menu button,
body.theme-aero #start-menu a,
body.theme-aero #start-menu .start-menu-item {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
}

body.theme-aero .start-menu button:hover,
body.theme-aero .start-menu a:hover,
body.theme-aero .start-menu .start-menu-item:hover,
body.theme-aero #start-menu button:hover,
body.theme-aero #start-menu a:hover,
body.theme-aero #start-menu .start-menu-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(0, 150, 255, 0.4) 100%
  ) !important;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5), 0 0 8px rgba(0, 180, 255, 0.4) !important;
}


/* ------------------------------------------
   3. AERO GLASS WINDOWS
   ------------------------------------------ */
body.theme-aero .window,
body.theme-aero [class*="window"],
body.theme-aero .dialog-box {
  background: linear-gradient(
    180deg, 
    rgba(73, 139, 225, 0.40) 0%, 
    rgba(73, 139, 195, 0.25) 30%, 
    rgba(70, 140, 210, 0.20) 100%
  ) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 8px 8px 5px 5px !important;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 8px rgba(255, 255, 255, 0.3) !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}

body.theme-aero .window::before,
body.theme-aero .window::after {
  display: none !important;
  background: none !important;
}

/* Glass Titlebar Structure */
body.theme-aero .titlebar,
body.theme-aero .aero-titlebar {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 4px 4px 4px !important;
  margin: 0 !important;
}

/* Halo Effect on Titlebar Text */
body.theme-aero .titlebar .title-text,
body.theme-aero .titlebar span:not([class*="btn"]) {
  color: #000000 !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-shadow: 
    0 0 8px rgba(73, 139, 208, 0.95),
    0 0 5px rgba(73, 139, 205, 0.95),
    0 0 3px rgba(73, 139, 225, 0.95) !important;
}


/* ------------------------------------------
   4. WINDOW TITLEBAR CONTROLS (Min, Max, Close)
   ------------------------------------------ */
body.theme-aero .titlebar button,
body.theme-aero .win-controls button,
body.theme-aero .titlebar-controls button,
body.theme-aero .titlebar [class*="btn"] {
  background: linear-gradient(
    180deg, 
    rgba(73, 139, 208, 0.8) 0%, 
    rgba(73, 139, 225, 0.6) 50%, 
    rgba(73, 139, 255, 0.7) 100%
  ) !important;
  border: 1px solid rgba(0, 0, 0, 0.45) !important;
  border-radius: 3px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  color: #111111 !important;
  font-size: 10px !important;
  width: 26px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 1px !important;
  cursor: pointer !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.theme-aero .titlebar button:hover,
body.theme-aero .win-controls button:hover,
body.theme-aero .titlebar-controls button:hover {
  background: linear-gradient(
    180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(190, 225, 255, 0.9) 50%, 
    rgba(120, 180, 240, 0.9) 100%
  ) !important;
  box-shadow: 0 0 6px rgba(0, 140, 255, 0.7), inset 0 1px 0 #ffffff !important;
}

/* Close Button Special Glossy Red */
body.theme-aero .titlebar button.close,
body.theme-aero .win-controls button.close,
body.theme-aero .titlebar-controls button.close,
body.theme-aero .titlebar [class*="close"] {
  width: 43px !important;
  background: linear-gradient(
    180deg, 
    #fca2a2 0%, 
    #e04343 50%, 
    #b81b1b 100%
  ) !important;
  border: 1px solid #701010 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.theme-aero .titlebar button.close:hover,
body.theme-aero .win-controls button.close:hover,
body.theme-aero .titlebar-controls button.close:hover,
body.theme-aero .titlebar [class*="close"]:hover {
  background: linear-gradient(
    180deg, 
    #ffc0c0 0%, 
    #f25252 50%, 
    #d42424 100%
  ) !important;
  box-shadow: 0 0 8px rgba(255, 50, 50, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}


/* ------------------------------------------
   5. INTERIOR WINDOW CONTENT & CONTROLS
   ------------------------------------------ */
body.theme-aero .window-body,
body.theme-aero .win-body,
body.theme-aero [class*="window-body"] {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #718dae !important;
  border-radius: 3px !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15) !important;
  color: #1e1e1e !important;
  padding: 10px !important;
}

/* Interior Buttons */
body.theme-aero .window-body button,
body.theme-aero .win-body button,
body.theme-aero .dialog-content button,
body.theme-aero .window-body input[type="button"],
body.theme-aero .window-body input[type="submit"] {
  background: linear-gradient(
    180deg, 
    #fcfcfc 0%, 
    #f0f0f0 48%, 
    #e1e1e1 50%, 
    #e5e5e5 100%
  ) !important;
  border: 1px solid #707070 !important;
  border-radius: 3px !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  color: #1e1e1e !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  font-size: 11px !important;
  padding: 4px 12px !important;
  cursor: pointer !important;
  outline: none !important;
}

body.theme-aero .window-body button:hover,
body.theme-aero .win-body button:hover,
body.theme-aero .dialog-content button:hover {
  background: linear-gradient(
    180deg, 
    #eaf6fd 0%, 
    #d9f0fc 48%, 
    #bee6fd 50%, 
    #a7d9f5 100%
  ) !important;
  border-color: #3c7fb1 !important;
  box-shadow: 0 0 4px rgba(60, 127, 177, 0.6), inset 0 1px 0 #ffffff !important;
}

/* Select Dropdowns & Inputs */
body.theme-aero .window-body select,
body.theme-aero .window-body input[type="text"],
body.theme-aero .win-body select,
body.theme-aero .win-body input[type="text"] {
  background: #ffffff !important;
  border: 1px solid #7a9e9f !important;
  border-radius: 2px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  color: #1e1e1e !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  font-size: 11px !important;
  padding: 3px 6px !important;
  outline: none !important;
}

body.theme-aero .window-body select:focus,
body.theme-aero .window-body input[type="text"]:focus {
  border-color: #3d95d0 !important;
  box-shadow: 0 0 5px rgba(61, 149, 208, 0.8), inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Checkboxes */
body.theme-aero .window-body input[type="checkbox"],
body.theme-aero .win-body input[type="checkbox"] {
  accent-color: #1f70c1 !important;
  cursor: pointer !important;
}

