/* --- Base styles, not theme-specific --- */
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
  padding-top: 56px; /* matches header height */
}

.title-bar .buttons {
  display: flex;
  gap: 4px;
}

/* Universal floating window layout */
.window {
  position: absolute;
  user-select: none;
  z-index: 10;
  min-width: 220px;
  min-height: 100px;
}

/* whoami window original size */
.window#whoami-window {
  width: 300px;
  min-width: 220px;
}

/* Utility: Bluesky/neofetch window sizing and embed sizing (not theme-specific) */
.window.bluesky {
  width: 370px;
  height: 440px;
}
.window.bluesky .content {
  height: 400px;
  overflow-y: hidden;
  padding: 0; /* Ensure no extra padding */
}

#embedbsky-com-timeline-embed {
  width: 340 !important;
  height: 400px !important;
  border-radius: 8px !important;
  background: #18181b !important; /* Matches Bluesky embed dark mode */
  margin: 0 auto; /* Center horizontally if needed */
  display: block;
  border: none !important; /* Remove border */
}

#embedbsky-com-timeline-embed,
#embedbsky-com-timeline-embed * {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.window.neofetch {
  width: 460px;
 /* min-height: 340px; */
  height: 260px;
}

/* Reload and theme switcher bar layout */
#reload95-bar {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 9999;
}
#reload95-btn {
  padding: 4px 16px;
  font-size: 14px;
  box-shadow: 1px 1px #808080;
  cursor: pointer;
  font-family: 'Perfect DOS VGA 437', 'MS Sans Serif', 'Tahoma', 'Geneva', sans-serif;
}
#reload95-btn span {
  font-weight: bold;
}

#top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 10000;
  box-sizing: border-box;
  background: transparent;
}

#theme-menu-bar {
  position: absolute;
  top: 8px;
  right: 24px;
  z-index: 10001;
  pointer-events: auto;
}

#theme-menu-btn {
  padding: 4px 16px;
  font-size: 14px;
  box-shadow: 1px 1px #808080;
  cursor: pointer;
  font-family: inherit; /* Inherit font from theme */
  color: inherit;       /* Inherit text color from theme */
  background: inherit;  /* Inherit background from theme */
  border: inherit;      /* Inherit border from theme */
  transition: background 0.2s, color 0.2s, border 0.2s;
}

#theme-menu-btn:active,
#theme-menu-btn.clicked {
  background: inherit;
  color: inherit;
  box-shadow: inset 1px 1px #888;
  outline: 2px solid currentColor;
}

#theme-menu-dropdown {
  display: block;
  position: absolute;
  right: 0;
  top: 36px;
  background: #fff;
  border: 1px solid #888;
  border-radius: 8px;
  min-width: 140px;
  box-shadow: 0 2px 8px #8888;
  z-index: 10002;
  font-family: inherit;
  padding: 4px 0;
}
#theme-menu-dropdown.hidden {
  display: none !important;
}
#theme-menu-dropdown button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
}
#theme-menu-dropdown button:hover {
  background: #e0e0e0;
}
.hidden {
  display: none !important;
}