@import url('https://fonts.googleapis.com/css2?family=Chicago&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Geneva', 'Chicago', 'Helvetica', sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Classic Mac OS 8 button styling */
button {
  border-radius: 0;
  font-family: 'Chicago', monospace;
}

button:active {
  transform: translateY(1px);
}

/* Window styling */
.window-shadow {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Scrollbar styling for authentic look */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border: 1px solid #404040;
}

::-webkit-scrollbar-thumb:hover {
  background: #606060;
}

::-webkit-scrollbar-corner {
  background: #c0c0c0;
}

/* Menu styling */
.menu-item:hover {
  background-color: #0066cc !important;
  color: white !important;
}

/* Icon text styling */
.icon-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

/* Authentic Mac OS 8 colors */
.mac-gray-light { background-color: #e6e6e6; }
.mac-gray-medium { background-color: #c0c0c0; }
.mac-gray-dark { background-color: #808080; }
.mac-blue { background-color: #0066cc; }

/* Calculator button grid styling */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
}

.calculator-button {
  min-height: 30px;
  border: 2px outset #c0c0c0;
  background: #e6e6e6;
  font-family: 'Chicago', monospace;
  font-size: 12px;
  font-weight: bold;
}

.calculator-button:active {
  border: 2px inset #c0c0c0;
}

/* Text editor styling */
textarea {
  font-family: 'Geneva', sans-serif;
  border: 1px inset #c0c0c0;
  background: white;
}

textarea:focus {
  outline: none;
  border: 1px inset #0066cc;
}

/* Finder list styling */
.finder-item {
  padding: 2px 4px;
  border-radius: 0;
  font-size: 12px;
  font-family: 'Geneva', sans-serif;
}

.finder-item:hover {
  background-color: #0066cc;
  color: white;
}

/* Desktop icon styling */
.desktop-icon {
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.desktop-icon:hover {
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* Prevent text selection on UI elements */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Menu bar styling */
.menu-bar {
  background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
  border-bottom: 1px solid #808080;
  font-family: 'Chicago', monospace;
  font-size: 12px;
  font-weight: bold;
}

/* Window title bar */
.title-bar {
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
  border-bottom: 1px solid #808080;
  font-family: 'Chicago', monospace;
  font-size: 11px;
  font-weight: bold;
}

.title-bar.active {
  background: linear-gradient(to bottom, #4080ff 0%, #2060df 50%, #1040bf 100%);
  color: white;
}

/* Window close/zoom buttons */
.window-button {
  width: 12px;
  height: 12px;
  border: 1px solid #808080;
  background: #f0f0f0;
  font-size: 8px;
  line-height: 8px;
  text-align: center;
}

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

.window-button:active {
  background: #d0d0d0;
  border: 1px inset #808080;
}