@import url('https://fonts.googleapis.com/css2?family=MS+Sans+Serif:wght@400@display=swap');

* {
  box-sizing: border-box;
  font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 20px;
  background: #008080;
  font-size: 11px;
  overflow-x: auto;
}

.win95-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.window {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  width: 400px;
  min-height: 350px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.titlebar {
  background: linear-gradient(90deg, #000080 0%, #4040c0 100%);
  color: white;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
}

.title {
  padding-left: 4px;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.control-btn {
  width: 16px;
  height: 14px;
  border: 1px outset #c0c0c0;
  background: #c0c0c0;
  font-size: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:active {
  border: 1px inset #c0c0c0;
}

.minimize::after { content: "_"; }
.maximize::after { content: "□"; }
.close::after { content: "×"; color: black; font-weight: bold; }

.window-content {
  padding: 12px;
  display: flex;
  gap: 16px;
}

.left-panel {
  width: 140px;
}

.right-panel {
  flex: 1;
}

.mouse-type-section {
  margin-bottom: 12px;
}

.mouse-type-section label {
  display: block;
  margin-bottom: 4px;
}

.dropdown-container {
  position: relative;
}

.dropdown-btn {
  width: 100%;
  height: 20px;
  border: 1px inset #c0c0c0;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
}

.dropdown-btn:hover {
  background: #f0f0f0;
}

.dropdown-arrow {
  font-size: 8px;
  color: #666;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px inset #c0c0c0;
  z-index: 10;
  max-height: 100px;
  overflow-y: auto;
}

.dropdown-option {
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
}

.dropdown-option:hover {
  background: #000080;
  color: white;
}

.mouse-graphic {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.mouse-body {
  width: 100px;
  height: 80px;
  background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%);
  border: 2px outset #c0c0c0;
  border-radius: 12px 12px 8px 8px;
  position: relative;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.5), inset -1px -1px 2px rgba(0,0,0,0.2);
}

.mouse-button {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px outset #c0c0c0;
  background: #d0d0d0;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.1s ease;
}

.mouse-button:hover {
  background: #e0e0e0;
}

.mouse-button.pressed {
  border: 1px inset #c0c0c0;
  background: #b0b0b0;
  transform: translateY(1px);
}

.test-area-section {
  margin-top: 16px;
}

.double-click-test-area {
  width: 120px;
  height: 60px;
  border: 2px inset #c0c0c0;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}

.test-label {
  font-size: 10px;
  color: #666;
  line-height: 1.2;
}

.test-result {
  font-size: 9px;
  color: #000080;
  margin-top: 4px;
  font-weight: bold;
}

.setting-group {
  margin-bottom: 16px;
}

.setting-group label {
  display: block;
  margin-bottom: 4px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-label {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

.slider-container {
  flex: 1;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.slider-track {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: white;
  border: 1px inset #c0c0c0;
}

.slider-thumb {
  position: absolute;
  top: 4px;
  width: 12px;
  height: 12px;
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  cursor: grab;
  transform: translateX(-50%);
}

.slider-thumb:active {
  cursor: grabbing;
  border: 1px inset #c0c0c0;
}

.folder-icon {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

.focus-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.focus-row label {
  margin-bottom: 0;
  white-space: nowrap;
}

.focus-row .dropdown-container {
  width: 80px;
}

.button-row {
  padding: 8px 12px;
  border-top: 1px solid #808080;
  display: flex;
  gap: 8px;
}

.win95-button {
  padding: 4px 16px;
  border: 1px outset #c0c0c0;
  background: #c0c0c0;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}

.win95-button:hover {
  background: #d0d0d0;
}

.win95-button:active {
  border: 1px inset #c0c0c0;
  background: #b0b0b0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .win95-container {
    padding: 10px;
  }
  
  .window {
    width: 100%;
    max-width: 400px;
  }
  
  .window-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .left-panel {
    width: 100%;
  }
  
  .mouse-graphic {
    margin: 12px 0;
  }
  
  .slider-row {
    gap: 4px;
  }
  
  .slider-label {
    font-size: 9px;
  }
}

@media (max-width: 320px) {
  .window-content {
    padding: 8px;
  }
  
  .slider-row {
    flex-wrap: wrap;
  }
  
  .slider-container {
    min-width: 100px;
  }
}