/* ==========================================================================
   CYBEROS 98 - CLASSIC WINDOWS 98 / 2000 TEAL DESKTOP & MULTIMEDIA VAULT
   Folder 26 - Authentic 1998-2001 Windows Desktop OS GUI
   100% Pure Native Vanilla CSS | ZERO External Libraries | Sub-2ms TTFB
   Colors: Classic Teal (#008080), Win98 Gray (#c0c0c0), Navy Blue (#000080)
   ========================================================================== */

:root {
  --win-teal: #008080;
  --win-gray: #c0c0c0;
  --win-dark: #808080;
  --win-black: #000000;
  --win-white: #ffffff;
  --win-navy: #000080;
  --win-blue-light: #1084d0;
  --win-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "MS Sans Serif", Geneva, sans-serif;
  --win-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--win-teal);
  color: var(--win-black);
  font-family: var(--win-font);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--win-navy);
  text-decoration: underline;
}

a:hover {
  color: #d80000;
}

/* Classic Win98 Bevel Helper Mixins */
.win-outset {
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
}

.win-inset {
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  background-color: var(--win-white);
}

.win-btn {
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 3px 8px;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  color: var(--win-black) !important;
  user-select: none;
}

.win-btn:active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 4px 7px 2px 9px;
}

/* Master Top Menu Bar */
.win-top-menu {
  background-color: var(--win-gray);
  border-bottom: 2px solid var(--win-dark);
  display: flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 11.5px;
  gap: 2px;
  position: relative;
  z-index: 999;
}

.menu-item-dropdown {
  position: relative;
  padding: 3px 8px;
  cursor: pointer;
  user-select: none;
}

.menu-item-dropdown:hover {
  background-color: var(--win-navy);
  color: var(--win-white);
}

.dropdown-menu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 2px 2px 0 var(--win-black);
  min-width: 170px;
  z-index: 1000;
  padding: 2px 0;
}

.menu-item-dropdown:hover .dropdown-menu-list {
  display: block;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  color: var(--win-black);
  text-decoration: none !important;
  font-size: 11px;
}

.dropdown-link-item:hover {
  background-color: var(--win-navy);
  color: var(--win-white) !important;
}

.dropdown-divider {
  border-top: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-white);
  margin: 3px 2px;
}

/* Master Desktop Canvas */
.desktop-canvas {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto 50px; /* Space for taskbar */
}

/* Desktop Top Status Ticker */
.desktop-banner-bar {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* Window Shell */
.win-window-frame {
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

/* Window Titlebar */
.win-titlebar {
  background: linear-gradient(90deg, var(--win-navy) 0%, var(--win-blue-light) 100%);
  color: var(--win-white);
  padding: 3px 6px;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.win-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-title-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.win-control-btn {
  width: 16px;
  height: 14px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  color: var(--win-black);
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.win-control-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

/* Window Toolbar Bar */
.win-toolbar-bar {
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.win-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-size: 11.5px;
}

.address-input-box {
  flex: 1;
  background-color: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 2px 6px;
  font-family: var(--win-font);
  font-size: 11px;
}

/* ==========================================================================
   WINDOW 1: WINDOWS MEDIA PLAYER v6.4 (12 STREAM MOVIES GRID)
   ========================================================================== */
.wmp-body-container {
  padding: 12px;
  background-color: #000000;
  color: #00ff00;
}

.wmp-screen-area {
  background: #111111;
  border: 2px inset var(--win-dark);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #ffffff;
}

.wmp-screen-title {
  font-size: 14px;
  font-weight: bold;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wmp-screen-meta {
  font-family: var(--win-mono);
  font-size: 12px;
  color: #4ade80;
}

/* 12 Cinema Stream Tracks Grid */
.wmp-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.wmp-track-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.wmp-track-card:hover {
  background: #0f172a;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.wmp-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wmp-track-title {
  font-size: 12.5px;
  font-weight: bold;
  color: #f8fafc;
}

.wmp-quality-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.wmp-track-info {
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.wmp-play-btn {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  text-align: center;
  margin-top: 4px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wmp-play-btn:hover {
  background: #15803d;
}

/* WMP Control Deck */
.wmp-control-deck {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.wmp-btn-cluster {
  display: flex;
  gap: 4px;
}

/* ==========================================================================
   WINDOW 2: WINDOWS EXPLORER (C:\CYBEROS\VAULT & KEYWORDS)
   ========================================================================== */
.explorer-split-view {
  display: flex;
  min-height: 380px;
}

.explorer-treeview-pane {
  width: 220px;
  background-color: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 1px solid var(--win-dark);
  border-bottom: 2px solid var(--win-white);
  padding: 10px 8px;
  overflow-y: auto;
  font-size: 11.5px;
}

.treeview-item {
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.treeview-item:hover,
.treeview-item.active {
  background-color: var(--win-navy);
  color: var(--win-white);
}

.treeview-sub {
  padding-left: 18px;
}

.explorer-files-pane {
  flex: 1;
  background-color: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 12px;
  overflow-y: auto;
  max-height: 440px;
}

.explorer-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.explorer-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  text-decoration: none !important;
  color: var(--win-black);
  transition: all 0.1s ease;
}

.explorer-file-item:hover {
  background: var(--win-navy);
  color: var(--win-white) !important;
  border-color: var(--win-navy);
}

.file-icon {
  font-size: 14px;
}

.file-name-text {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Search Input Inside Explorer */
.explorer-search-bar {
  padding: 6px 12px;
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-input-win {
  flex: 1;
  max-width: 320px;
  background: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 3px 6px;
  font-family: inherit;
  font-size: 11.5px;
}

/* ==========================================================================
   WINDOW 3: DIRECTX DIAGNOSTICS (dxdiag.exe SYSTEM AUDIT)
   ========================================================================== */
.dxdiag-body {
  padding: 14px;
  background-color: var(--win-gray);
}

.dxdiag-tabs-bar {
  display: flex;
  gap: 2px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.dxdiag-tab-btn {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: none;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.dxdiag-tab-btn.active {
  background: var(--win-gray);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--win-gray);
}

.dxdiag-content-frame {
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  background: var(--win-gray);
  padding: 14px;
}

.dxdiag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.dxdiag-table td {
  padding: 4px 6px;
  vertical-align: top;
}

.dxdiag-lbl {
  width: 180px;
  font-weight: bold;
  color: #1e293b;
}

.dxdiag-val {
  color: var(--win-navy);
  font-weight: 700;
}

/* ==========================================================================
   WINDOW 4: AUTHENTIC 1999-2005 RETRO WEBRING BANNER RIBBON
   ========================================================================== */
.webring-retro-box {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 12px 16px;
  text-align: center;
}

.webring-retro-title {
  font-weight: bold;
  font-size: 12.5px;
  color: var(--win-navy);
  margin-bottom: 8px;
}

.webring-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   BOTTOM: WINDOWS 98 TASKBAR (FIXED AT SCREEN BOTTOM)
   ========================================================================== */
.win-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  z-index: 9999;
  user-select: none;
}

.taskbar-left-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.start-button {
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 2px 8px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.start-button:active,
.start-button.active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
}

.taskbar-window-tabs {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.task-tab-btn {
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.task-tab-btn.active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  background-color: #d4d0c8;
}

.system-tray {
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

/* Start Menu Popup */
.win-start-menu {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 2px;
  width: 220px;
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 2px 2px 0 var(--win-black);
  z-index: 10000;
  display: flex;
}

.start-sidebar-brand {
  width: 28px;
  background: linear-gradient(180deg, var(--win-navy) 0%, var(--win-blue-light) 100%);
  color: var(--win-white);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 0;
  letter-spacing: 2px;
}

.start-menu-items {
  flex: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.start-item-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--win-black);
  text-decoration: none !important;
  font-size: 11.5px;
  font-weight: 600;
}

.start-item-link:hover {
  background-color: var(--win-navy);
  color: var(--win-white) !important;
}

/* Compliance Footer */
.win-footer-notice {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  padding: 12px 16px;
  font-size: 11px;
  color: #334155;
  text-align: center;
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .explorer-split-view {
    flex-direction: column;
  }
  .explorer-treeview-pane {
    width: 100%;
    border-right: 2px solid var(--win-white);
  }
  .wmp-streams-grid {
    grid-template-columns: 1fr;
  }
  .taskbar-window-tabs {
    display: none;
  }
}