/* ==========================================================================
   AUTHENTIC WINDOWS 95 EXPERIENCE (Theme: retro-90s)
   Pixel-perfect classic Win95 UI: Window frames, Titlebars, Minimize/Maximize/Close,
   Taskbar, Start Menu, 3D Bevels & Sunken Wells, System Tray Clock.
   ========================================================================== */

/* 1. Base Variables & Desktop Canvas */
html[data-theme="retro-90s"] {
  --bg-main: #008080 !important; /* Iconic Windows 95 Desktop Teal */
  --bg-surface: #c0c0c0 !important; /* Classic Windows Silver */
  --bg-card: #c0c0c0 !important;
  --bg-card-hover: #c0c0c0 !important;
  --border-card: #808080 !important;
  --border-card-hover: #000080 !important;
  --text-main: #000000 !important;
  --text-muted: #333333 !important;
  --color-primary: #000080 !important; /* Windows 95 Navy Blue */
  --color-primary-rgb: 0, 0, 128 !important;
  --color-primary-hover: #1084d0 !important;
  --color-accent: #000080 !important;
  --accent: #000080 !important;
  --accent-gradient: linear-gradient(90deg, #000080 0%, #1084d0 100%) !important;
  --accent-bg: #ffffff !important;
  --accent-border: #808080 !important;
  --card-radius: 0px !important;
  --button-radius: 0px !important;
  --badge-radius: 0px !important;
  --font-heading: 'MS Sans Serif', Tahoma, 'Segoe UI', Arial, sans-serif !important;
  --font-body: 'MS Sans Serif', Tahoma, 'Segoe UI', Arial, sans-serif !important;
  --font-mono: 'Courier New', monospace !important;
}

html[data-theme="retro-90s"] body {
  background-color: #008080 !important;
  color: #000000 !important;
  font-family: 'MS Sans Serif', Tahoma, 'Segoe UI', Arial, sans-serif !important;
}

/* 2. Classic 3D Bevels */
/* Raised 3D Box (Outset) */
.win95-raised,
html[data-theme="retro-90s"] .btn-primary,
html[data-theme="retro-90s"] .btn-secondary,
html[data-theme="retro-90s"] .btn-live-out,
html[data-theme="retro-90s"] .btn-brief-cta,
html[data-theme="retro-90s"] .nav-pill-btn,
html[data-theme="retro-90s"] .nav-btn,
html[data-theme="retro-90s"] .btn-mini,
html[data-theme="retro-90s"] .win95-btn {
  background: #c0c0c0 !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  border-radius: 0 !important;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  cursor: pointer !important;
  outline: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: none !important;
  transition: none !important;
}

html[data-theme="retro-90s"] .btn-primary:active,
html[data-theme="retro-90s"] .btn-secondary:active,
html[data-theme="retro-90s"] .btn-live-out:active,
html[data-theme="retro-90s"] .btn-brief-cta:active,
html[data-theme="retro-90s"] .nav-pill-btn:active,
html[data-theme="retro-90s"] .nav-btn:active,
html[data-theme="retro-90s"] .btn-mini:active,
html[data-theme="retro-90s"] .win95-btn:active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf !important;
  padding: 6px 13px 4px 15px !important; /* Classic 1px pressed shift */
}

/* Primary/Default button gets a 1px black outline */
html[data-theme="retro-90s"] .btn-primary,
html[data-theme="retro-90s"] .btn-live-out {
  outline: 1px solid #000000 !important;
  outline-offset: -1px !important;
}

/* Sunken 3D Box (Inset / Well) */
html[data-theme="retro-90s"] input[type="text"],
html[data-theme="retro-90s"] input[type="email"],
html[data-theme="retro-90s"] input[type="tel"],
html[data-theme="retro-90s"] textarea,
html[data-theme="retro-90s"] select,
html[data-theme="retro-90s"] .nav-select,
html[data-theme="retro-90s"] .form-control,
html[data-theme="retro-90s"] .form-input,
html[data-theme="retro-90s"] .win95-sunken {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf !important;
  border-radius: 0 !important;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  outline: none !important;
}

html[data-theme="retro-90s"] input:focus,
html[data-theme="retro-90s"] textarea:focus,
html[data-theme="retro-90s"] select:focus {
  background: #ffffff !important;
  color: #000000 !important;
}

/* 3. Windows 95 Window Frame Styling */
html[data-theme="retro-90s"] .showcase-item,
html[data-theme="retro-90s"] .pillar-card,
html[data-theme="retro-90s"] .brief-hero-banner,
html[data-theme="retro-90s"] .brief-card,
html[data-theme="retro-90s"] .contact-info-card,
html[data-theme="retro-90s"] .contact-form-card,
html[data-theme="retro-90s"] .contact-modal-card,
html[data-theme="retro-90s"] .blueprint-sidebar,
html[data-theme="retro-90s"] .auth-card,
html[data-theme="retro-90s"] .service-row-card,
html[data-theme="retro-90s"] .inbox-card,
html[data-theme="retro-90s"] .card-block,
html[data-theme="retro-90s"] .curiosity-card,
html[data-theme="retro-90s"] .bottom-cta,
html[data-theme="retro-90s"] .win95-window {
  background: #c0c0c0 !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf, 3px 3px 10px rgba(0,0,0,0.4) !important;
  border: 1px solid #808080 !important;
  border-radius: 0 !important;
  padding: 3px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: visible !important;
}

/* Inner Window Content Well (White sunken area) */
html[data-theme="retro-90s"] .showcase-item .showcase-inner,
html[data-theme="retro-90s"] .showcase-item > .showcase-visual,
html[data-theme="retro-90s"] .showcase-item > .showcase-info,
html[data-theme="retro-90s"] .pillar-card > *:not(.win95-titlebar),
html[data-theme="retro-90s"] .brief-hero-banner > div,
html[data-theme="retro-90s"] .win95-window-body {
  box-sizing: border-box;
}

/* 4. Windows 95 Titlebar (Pasek tytułowy okna) */
.win95-titlebar {
  display: none; /* Hidden by default in modern themes */
}

html[data-theme="retro-90s"] .win95-titlebar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%) !important;
  color: #ffffff !important;
  padding: 3px 3px 3px 5px !important;
  font-family: 'MS Sans Serif', Tahoma, 'Segoe UI', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  user-select: none !important;
  margin: 0 0 3px 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 22px !important;
}

/* Title & App Icon on the Left */
.win95-title-left {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.win95-app-icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.win95-title-text {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Window Buttons on the Right (_ □ X) */
.win95-title-controls {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

.win95-win-btn {
  width: 16px !important;
  height: 14px !important;
  min-width: 16px !important;
  min-height: 14px !important;
  background: #c0c0c0 !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  border-radius: 0 !important;
  font-family: 'MS Sans Serif', Tahoma, monospace, sans-serif !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
}

.win95-win-btn:active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf !important;
}

.win95-win-btn.close-btn {
  margin-left: 2px !important;
}

/* 5. Classic Windows 95 Menu Bar (Plik Edycja Widok Pomoc) */
.win95-menubar {
  display: none;
}

html[data-theme="retro-90s"] .win95-menubar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 2px 6px !important;
  background: #c0c0c0 !important;
  border-bottom: 1px solid #808080 !important;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  color: #000000 !important;
  margin-bottom: 4px !important;
  user-select: none !important;
}

html[data-theme="retro-90s"] .win95-menubar span {
  cursor: pointer !important;
}

html[data-theme="retro-90s"] .win95-menubar span u {
  text-decoration: underline !important;
}

html[data-theme="retro-90s"] .win95-menubar span:hover {
  background: #000080 !important;
  color: #ffffff !important;
}

/* 6. Windows 95 Taskbar & Start Button */
html[data-theme="retro-90s"] .navbar {
  background: #c0c0c0 !important;
  border-top: 2px solid #ffffff !important;
  border-bottom: 2px solid #808080 !important;
  box-shadow: 0 -1px 0 #dfdfdf, 0 2px 0 #0a0a0a !important;
  border-radius: 0 !important;
  padding: 3px 6px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

html[data-theme="retro-90s"] .nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Classic Start Button */
.win95-start-button {
  display: none;
}

html[data-theme="retro-90s"] .win95-start-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #c0c0c0 !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  padding: 3px 8px !important;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  height: 26px !important;
  user-select: none !important;
}

html[data-theme="retro-90s"] .win95-start-button:active,
html[data-theme="retro-90s"] .win95-start-button.active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf !important;
  background: #d4d4d4 !important;
}

/* Taskbar Windows Buttons in Middle */
html[data-theme="retro-90s"] .nav-links {
  display: flex !important;
  gap: 3px !important;
  flex: 1 !important;
  margin: 0 8px !important;
  overflow-x: auto !important;
}

html[data-theme="retro-90s"] .nav-link {
  background: #c0c0c0 !important;
  color: #000000 !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 24px !important;
}

html[data-theme="retro-90s"] .nav-link:active,
html[data-theme="retro-90s"] .nav-link.active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf !important;
  background: #e0e0e0 !important;
  font-weight: 800 !important;
}

/* System Tray on the Right */
.win95-systray {
  display: none;
}

html[data-theme="retro-90s"] .win95-systray {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #ffffff !important;
  padding: 2px 8px !important;
  height: 24px !important;
  background: #c0c0c0 !important;
  font-family: 'MS Sans Serif', Tahoma, monospace, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  flex-shrink: 0 !important;
}

/* 7. Start Menu Dropdown */
.win95-start-menu {
  display: none;
  position: fixed;
  top: 40px;
  left: 10px;
  z-index: 99999;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf, 5px 5px 15px rgba(0,0,0,0.5);
  border: 1px solid #808080;
  display: none;
  width: 260px;
  padding: 2px;
}

html[data-theme="retro-90s"] .win95-start-menu.open {
  display: flex !important;
}

.win95-start-banner {
  background: #000080;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  padding: 12px 4px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-shadow: 1px 1px #000;
  user-select: none;
}

.win95-start-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2px;
}

.win95-start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #000000;
  text-decoration: none;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.win95-start-item:hover {
  background: #000080;
  color: #ffffff;
}

.win95-start-divider {
  height: 1px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  margin: 4px 2px;
}

/* 8. Classic Property Sheet Tabs (Device Tabs) */
html[data-theme="retro-90s"] .device-view-tabs,
html[data-theme="retro-90s"] .device-tabs {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  gap: 2px !important;
  padding: 0 !important;
  align-items: flex-end !important;
}

html[data-theme="retro-90s"] .device-tab {
  background: #c0c0c0 !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: inset -1px 0 #0a0a0a, inset 1px 1px #ffffff, inset -2px 0 #808080, inset 2px 2px #dfdfdf !important;
  border-radius: 0 !important;
  padding: 4px 12px 3px 12px !important;
  font-family: 'MS Sans Serif', Tahoma, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-bottom: -2px !important;
  position: relative !important;
  z-index: 1 !important;
}

html[data-theme="retro-90s"] .device-tab.active {
  box-shadow: inset -1px 0 #0a0a0a, inset 1px 1px #ffffff, inset -2px 0 #808080, inset 2px 2px #dfdfdf !important;
  padding: 6px 14px 5px 14px !important;
  margin-top: -2px !important;
  font-weight: 900 !important;
  z-index: 3 !important;
}

/* 9. Interactive Minimized State (Rollup) */
html[data-theme="retro-90s"] .win95-minimized > *:not(.win95-titlebar) {
  display: none !important;
}
html[data-theme="retro-90s"] .win95-minimized {
  height: auto !important;
  min-height: unset !important;
}

/* 10. Classic Dialog Window (for Contact & Alerts) */
html[data-theme="retro-90s"] .contact-modal-backdrop {
  background: rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="retro-90s"] .contact-modal-card {
  width: 90% !important;
  max-width: 520px !important;
}
