/* theme-macos9.css — classic Mac OS 9 Platinum theme + About This Computer dialog */

/* ==========================================
   🍏 CLASSIC MACOS 9 PLATINUM THEME
   ========================================== */

/* Hide macOS Menu Bar by default on other themes */
.macos9-menubar {
  display: none !important;
}

/* Activate only on body.theme-macos9 */
body.theme-macos9 .macos9-menubar {
  display: flex !important;
}

body.theme-macos9 {
  --win-bg: #dddddd !important;
  --win-text: #000000 !important;
  font-family: 'Charcoal', 'Chicago', Geneva, Verdana, sans-serif !important;
  background-color: #336699 !important; /* Default Mac OS 9 Blue Wallpaper */
  padding-top: 22px !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* 1. TOP MENU BAR */
body.theme-macos9 .macos9-menubar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 999990;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  box-sizing: border-box;
  user-select: none;
  font-size: 12px;
}

.mac-menu-left, .mac-menu-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mac-menu-item-wrapper {
  position: relative;
}

body.theme-macos9 .mac-menu-btn {
  background: transparent !important;
  border: none !important;
  color: #000000 !important;
  font-family: 'Charcoal', 'Chicago', Geneva, sans-serif !important;
  font-size: 12px !important;
  font-weight: bold !important;
  padding: 1px 8px !important;
  cursor: pointer;
  height: 20px;
}

body.theme-macos9 .mac-menu-btn.mac-apple-logo {
  font-size: 14px !important;
  padding: 0 6px !important;
}

/* Menu Dropdown Inverted Highlight Style */
body.theme-macos9 .mac-menu-btn:hover,
body.theme-macos9 .mac-menu-btn:active {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Dropdown Menus */
.mac-dropdown-menu {
  display: none;
  position: absolute;
  top: 20px;
  left: 0;
  background: #ffffff;
  border: 1px solid #000000;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  z-index: 100000;
  padding: 2px 0;
}

.mac-dropdown-menu.show {
  display: block;
}

.mac-menu-item {
  padding: 3px 16px;
  font-size: 12px;
  color: #000000;
  cursor: pointer;
  font-family: Geneva, sans-serif;
}

.mac-menu-item:hover {
  background: #000000;
  color: #ffffff;
}

.mac-menu-divider {
  height: 1px;
  background: #a0a0a0;
  margin: 3px 0;
}

.mac-clock, .mac-app-switcher {
  font-family: Geneva, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 0 4px;
  cursor: pointer;
}

/* 2. PLATINUM WINDOWS */
body.theme-macos9 .window,
body.theme-macos9 .hybrid-window,
body.theme-macos9 [class*="window"] {
  background: #dddddd !important;
  border: 1px solid #000000 !important;
  border-radius: 4px 4px 0 0 !important;
  box-shadow: 
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #a0a0a0,
    4px 4px 0px rgba(0, 0, 0, 0.3) !important;
  padding: 2px !important;
}

/* Classic Pinstripe Titlebar */
body.theme-macos9 .titlebar,
body.theme-macos9 .aero-titlebar,
body.theme-macos9 .title-bar,
body.theme-macos9 .window-header {
  background: repeating-linear-gradient(
    180deg,
    #ffffff 0px,
    #ffffff 1px,
    #cccccc 1px,
    #cccccc 2px
  ) !important;
  border-bottom: 1px solid #000000 !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 3px !important;
  border-radius: 3px 3px 0 0 !important;
}

/* Window Title Text Box */
body.theme-macos9 .win-title,
body.theme-macos9 .titlebar .title-text,
body.theme-macos9 .aero-titlebar span {
  background: #dddddd !important;
  color: #000000 !important;
  font-family: 'Charcoal', 'Chicago', Geneva, sans-serif !important;
  font-size: 11px !important;
  font-weight: bold !important;
  padding: 0 8px !important;
  border-left: 1px solid #666666 !important;
  border-right: 1px solid #666666 !important;
  text-shadow: none !important;
}

/* macOS Window Buttons (Square Boxes) */
body.theme-macos9 .win-btn,
body.theme-macos9 .titlebar button,
body.theme-macos9 .win-controls button {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  box-shadow: inset -1px -1px 0 #808080 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 1px !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

body.theme-macos9 .win-btn:active {
  background: #000000 !important;
}

/* 3. INTERIOR CONTROLS & BUTTONS */
body.theme-macos9 .window-body {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  color: #000000 !important;
  padding: 8px !important;
}

/* Classic Platinum Pill Buttons */
body.theme-macos9 button:not(.mac-menu-btn):not(.win-btn) {
  background: linear-gradient(180deg, #ffffff 0%, #dddddd 50%, #c8c8c8 100%) !important;
  border: 1px solid #000000 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 #ffffff !important;
  color: #000000 !important;
  font-family: Geneva, sans-serif !important;
  font-weight: bold !important;
  font-size: 11px !important;
  padding: 2px 12px !important;
  cursor: pointer !important;
}

body.theme-macos9 button:not(.mac-menu-btn):not(.win-btn):active {
  background: #999999 !important;
  box-shadow: inset 1px 1px 2px #000000 !important;
  color: #ffffff !important;
}

/* Completely hide Ubuntu GNOME panels when using macOS 9 */
body.theme-macos9 .ubuntu-panel,
body.theme-macos9 .ubuntu-panel-top,
body.theme-macos9 .ubuntu-panel-bottom {
  display: none !important;
}

/* Completely hide default Windows/Void taskbars & status bars under macOS 9 */
body.theme-macos9 .taskbar,
body.theme-macos9 #taskbar,
body.theme-macos9 .aero-statusbar,
body.theme-macos9 [class*="taskbar"],
body.theme-macos9 [class*="statusbar"] {
  display: none !important;
}

/* Remove bottom padding on body so content extends to the screen edge */
body.theme-macos9 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================
   MACOS 9 "ABOUT THIS COMPUTER" DIALOG
   ========================================== */

body.theme-macos9 .macos9-about-window {
  background: #dddddd !important;
  border: 1px solid #000000 !important;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.4) !important;
  font-family: Geneva, Verdana, sans-serif !important;
}

body.theme-macos9 .mac-about-body {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  padding: 12px !important;
  color: #000000 !important;
}

/* Header Section */
.mac-about-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.mac-about-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.mac-finder-face {
  font-size: 38px;
  line-height: 1;
}

.mac-os-title {
  font-family: 'Charcoal', 'Chicago', Geneva, sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-top: 4px;
}

.mac-about-specs-top p {
  margin: 2px 0;
  font-size: 11px;
}

.mac-about-divider {
  height: 1px;
  background: #a0a0a0;
  border-bottom: 1px solid #ffffff;
  margin: 10px 0;
}

/* Memory Gauges */
.mac-memory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.mac-memory-row {
  display: flex;
  align-items: center;
  font-size: 11px;
  gap: 8px;
}

.mac-app-name {
  width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

.mac-bar-container {
  flex-grow: 1;
  height: 12px;
  background: #ffffff;
  border: 1px solid #000000;
  box-shadow: inset 1px 1px 0 #a0a0a0;
  padding: 1px;
}

.mac-bar-fill {
  height: 100%;
  background: linear-gradient(180deg, #6699cc 0%, #336699 100%);
  border: 1px solid #003366;
  box-sizing: border-box;
}

.mac-app-size {
  width: 60px;
  text-align: right;
  font-family: monospace;
}

/* Footer */
.mac-about-footer {
  font-size: 9px;
  color: #555555;
  text-align: center;
  line-height: 1.3;
}

