/* ==========================================
   Windows 7 Aero Glass Theme Stylesheet
   ========================================== */
.theme-win7 {
  --desktop-bg: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
  --window-bg: rgba(230, 240, 255, 0.75);
  --window-border: rgba(255, 255, 255, 0.6);
  --text-main: #112233;
  /* The accent, the surfaces, the bar and the second text of this look, which the desk's parts and a game in a window read; without them the first look's showed through. */
  --accent: #2b6fc2;
  --window-active-border: #7fb2e5;
  --surface: #e6f0fb;
  --surface-hover: #d6e6f7;
  --taskbar-bg: rgba(20, 45, 70, 0.85);
  --text-secondary: #3d5570;
}

.theme-win7 #desktop {
  background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
}

/* --- Windows --- */
.theme-win7 .window {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 50, 100, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(220, 235, 255, 0.75);
}
.theme-win7 { --titlebar-blur: 16px; }   /* the glass on the title bar only (frame.css says why) */

.theme-win7 .window.active {
  box-shadow: 0 16px 48px rgba(0, 120, 240, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.theme-win7 .window .titlebar {
  background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(200,225,255,0.4) 50%, rgba(170,210,255,0.3) 51%, rgba(220,240,255,0.6) 100%);
  color: #112233;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 50, 100, 0.15);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  border-radius: 7px 7px 0 0;
  height: 30px;
}

.theme-win7 .window .window-title {
  color: #112233;
  font-weight: 600;
}

.theme-win7 .window .window-controls button {
  width: 26px;
  height: 18px;
  min-width: 26px;
  min-height: 18px;
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(0,0,0,0.2);
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(200,200,200,0.3));
  color: #222;
  font-size: 11px;
}

.theme-win7 .window .window-controls .btn-close:hover {
  background: linear-gradient(to bottom, #f06060, #cc0000);
  color: #ffffff;
}

.theme-win7 .code-toolbar {
  background: rgba(220, 235, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.theme-win7 .code-tab {
  background: rgba(255, 255, 255, 0.4);
  color: #112233;
  font-family: 'Segoe UI', sans-serif;
}

.theme-win7 .code-tab.active {
  background: #207cca;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(32, 124, 202, 0.6);
}

/* --- Taskbar --- */
.theme-win7 #taskbar {
  background: linear-gradient(to bottom, rgba(30, 60, 90, 0.7) 0%, rgba(10, 30, 50, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-win7 .start-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #40a0ff 0%, #104080 70%, #051530 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(64, 160, 255, 0.8);
}

.theme-win7 .start-label { display: none; }

.theme-win7 .taskbar-windows button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.theme-win7 .taskbar-windows button.active {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.theme-win7 .guide-btn,
.theme-win7 .tray-item,
.theme-win7 #clock {
  color: #ffffff !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  font-family: 'Segoe UI', sans-serif;
}

/* --- Context Menu & Start Menu --- */
.theme-win7 .context-menu {
  background: rgba(230, 240, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 40, 80, 0.4);
  color: #112233;
}

.theme-win7 .context-menu-item {
  color: #112233;
  font-family: 'Segoe UI', sans-serif;
}

.theme-win7 .context-menu-item:hover {
  background: #207cca;
  color: #ffffff;
}

.theme-win7 .start-menu {
  background: rgba(15, 30, 55, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.theme-win7 .start-menu-header {
  background: linear-gradient(to bottom, rgba(60, 120, 200, 0.5), rgba(20, 50, 100, 0.5));
}

.theme-win7 .start-menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.4);
}
