/* Stopwatch Application Styles */

.stopwatch-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--win98-window-bg);
  padding: 10px;
  box-sizing: border-box;
  font-family: 'MS Sans Serif', sans-serif;
}

/* Timer Display */
.stopwatch-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border: 2px solid var(--win98-button-shadow);
  border-right-color: var(--win98-button-highlight);
  border-bottom-color: var(--win98-button-highlight);
  background-color: #fff;
}

.stopwatch-time {
  font-size: 32px;
  font-weight: bold;
  font-family: 'MS Sans Serif', sans-serif;
  color: #000;
  text-align: center;
  letter-spacing: 2px;
}

/* Control Buttons */
.stopwatch-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.stopwatch-controls .win98-button {
  flex: 1;
  margin: 0 5px;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.stopwatch-controls .win98-button:first-child {
  margin-left: 0;
}

.stopwatch-controls .win98-button:last-child {
  margin-right: 0;
}

.button-icon {
  font-size: 16px;
  margin-bottom: 3px;
}

/* Lap List */
.stopwatch-lap-container {
  flex: 1;
  overflow: hidden;
  border: 2px solid var(--win98-button-shadow);
  border-right-color: var(--win98-button-highlight);
  border-bottom-color: var(--win98-button-highlight);
  background-color: #fff;
}

.stopwatch-lap-list {
  height: 100%;
  overflow-y: auto;
  padding: 5px;
}

.stopwatch-lap-item {
  display: flex;
  justify-content: space-between;
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

.stopwatch-lap-item:last-child {
  border-bottom: none;
}

.lap-number {
  font-weight: bold;
}

.stopwatch-no-laps {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #888;
  font-style: italic;
}

/* Windows 98 Scrollbar Styling */
.stopwatch-lap-list::-webkit-scrollbar {
  width: 16px;
}

.stopwatch-lap-list::-webkit-scrollbar-track {
  background: var(--win98-window-bg);
  border-left: 1px solid var(--win98-button-shadow);
}

.stopwatch-lap-list::-webkit-scrollbar-thumb {
  background: var(--win98-button-face);
  border: 1px solid var(--win98-button-dark-shadow);
  border-right-color: var(--win98-button-highlight);
  border-bottom-color: var(--win98-button-highlight);
}

.stopwatch-lap-list::-webkit-scrollbar-button {
  display: block;
  height: 16px;
  background-color: var(--win98-button-face);
  border: 1px solid var(--win98-button-dark-shadow);
  border-right-color: var(--win98-button-highlight);
  border-bottom-color: var(--win98-button-highlight);
}

/* Disabled button styling */
.win98-button[disabled] {
  color: var(--win98-button-shadow);
  text-shadow: 1px 1px var(--win98-button-highlight);
  cursor: default;
}