/*
================================================================================
WINDOWS 98 THEME - CSS GENERATOR
================================================================================

Theme Inspiration & Credits:
  • 98.css by jdan (https://github.com/jdan/98.css)
    - CSS library for building interfaces that look like Windows 98
    - Authentic beveled button styles, window chrome, and UI components
  
  • Windows 98 Operating System UI Design
    - Classic beveled borders, inset/outset shadows
    - Iconic interface design of the late 1990s

This theme recreates the nostalgic Windows 98 aesthetic with authentic
beveled borders, sunken input fields, and raised button effects.

================================================================================
*/

/* Windows 98 Theme - Based on 98.css */

/* Windows 98 Button */
.win98-button {
  display: inline-block;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  border-radius: 0;
  background-color: #c0c0c0;
  padding: 4px 12px;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #000000;
  text-shadow: 1px 1px #dfdfdf;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 50ms linear;
}

.win98-button:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.win98-button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.win98-button:disabled {
  color: #808080;
  text-shadow: 1px 1px #dfdfdf;
}

/* Windows 98 Checkbox */
.win98-checkbox-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.win98-checkbox {
  width: 13px;
  height: 13px;
  accent-color: #000080;
  cursor: pointer;
}

.win98-checkbox-label {
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  user-select: none;
  cursor: pointer;
}

/* Windows 98 Radio Button */
.win98-radio-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.win98-radio {
  width: 13px;
  height: 13px;
  accent-color: #000080;
  cursor: pointer;
}

.win98-radio-label {
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  user-select: none;
  cursor: pointer;
}

/* Windows 98 GroupBox */
.win98-groupbox {
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  padding: 8px;
  margin: 8px 0;
  background-color: #c0c0c0;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}

.win98-groupbox-legend {
  margin-left: -6px;
  padding: 0 6px;
  background-color: #c0c0c0;
  font-weight: bold;
}

/* Windows 98 TextBox */
.win98-textbox-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.win98-textbox-label {
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.win98-textbox {
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 3px 4px;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  background-color: #ffffff;
  color: #000000;
}

.win98-textbox:focus {
  outline: none;
}

.win98-textbox:disabled {
  background-color: #c0c0c0;
  color: #808080;
}

/* Windows 98 Dropdown */
.win98-dropdown {
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 3px 4px;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
}

.win98-dropdown:focus {
  outline: none;
}

.win98-dropdown:disabled {
  background-color: #c0c0c0;
  color: #808080;
}

/* Windows 98 Slider */
.win98-slider-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.win98-slider {
  flex: 1;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  border-radius: 0;
}

.win98-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #dfdfdf 0%, #808080 100%);
  border: 2px solid;
  border-color: #dfdfdf #000000 #000000 #dfdfdf;
  cursor: pointer;
}

.win98-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #dfdfdf 0%, #808080 100%);
  border: 2px solid;
  border-color: #dfdfdf #000000 #000000 #dfdfdf;
  cursor: pointer;
  border-radius: 0;
}

/* Windows 98 Window */
.win98-window {
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background-color: #c0c0c0;
  box-shadow: 1px 1px 0 #ffffff inset, 2px 2px 0 #808080 inset;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}

.win98-title-bar {
  background: linear-gradient(to right, #000080, #1084d7);
  color: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.win98-title-bar-text {
  font-weight: bold;
  font-size: 11px;
  user-select: none;
  padding: 2px 4px;
}

.win98-window-body {
  padding: 4px;
  background-color: #c0c0c0;
}
