@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap');

body {
  font-family: 'Source Code Pro', 'Chicago', Monaco, monospace;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  cursor: default;
}

/* Classic Mac OS System 7 styling */
.system7-desktop {
  background: #c0c0c0;
  background-image: 
    radial-gradient(circle at 25% 25%, #d0d0d0 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #b0b0b0 1px, transparent 1px);
  background-size: 4px 4px;
}

.window-title-bar {
  background: repeating-linear-gradient(
    90deg,
    #ddd 0px,
    #ddd 1px,
    #fff 1px,
    #fff 2px
  );
}

.window-title-bar.inactive {
  background: #e0e0e0;
}

/* System 7 button styling */
.system7-button {
  background: #e0e0e0;
  border: 2px outset #e0e0e0;
  font-family: inherit;
  font-size: 12px;
  padding: 2px 8px;
  cursor: pointer;
}

.system7-button:hover {
  background: #f0f0f0;
}

.system7-button:active {
  border: 2px inset #e0e0e0;
  background: #d0d0d0;
}

/* Classic scrollbar styling */
.classic-scrollbar::-webkit-scrollbar {
  width: 16px;
}

.classic-scrollbar::-webkit-scrollbar-track {
  background: #e0e0e0;
  border: 1px inset #c0c0c0;
}

.classic-scrollbar::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
}

.classic-scrollbar::-webkit-scrollbar-button {
  background: #e0e0e0;
  border: 1px outset #e0e0e0;
  height: 16px;
}

/* Desktop icon styling */
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  max-width: 64px;
}

.desktop-icon.selected {
  background: #0066cc;
  color: white;
}

.desktop-icon:hover {
  background: rgba(0, 102, 204, 0.1);
}

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

/* Menu bar styling */
.menubar {
  background: #000;
  color: #fff;
  font-size: 12px;
  height: 20px;
  border-bottom: 1px solid #333;
}

.menubar-item {
  padding: 2px 8px;
  cursor: pointer;
}

.menubar-item:hover {
  background: #333;
}

/* Classic Mac cursor styles */
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-resize { cursor: nw-resize; }

/* Animation for window opening */
@keyframes windowOpen {
  from {
    transform: scale(0.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.window-opening {
  animation: windowOpen 0.2s ease-out;
}

/* Classic dialog styling */
.dialog-box {
  background: #e0e0e0;
  border: 2px outset #e0e0e0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* System 7 texture background */
.system7-texture {
  background: #c0c0c0;
  background-image: 
    linear-gradient(45deg, #d0d0d0 25%, transparent 25%),
    linear-gradient(-45deg, #d0d0d0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #b0b0b0 75%),
    linear-gradient(-45deg, transparent 75%, #b0b0b0 75%);
  background-size: 2px 2px;
  background-position: 0 0, 0 1px, 1px -1px, -1px 0px;
}

/* Retro font rendering */
.retro-text {
  font-family: 'Source Code Pro', 'Chicago', Monaco, monospace;
  font-weight: normal;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

/* Classic Mac selection highlight */
.mac-selection {
  background: #0066cc !important;
  color: white !important;
}

/* Window resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: repeating-linear-gradient(
    45deg,
    #999 0px,
    #999 1px,
    #ccc 1px,
    #ccc 2px
  );
  cursor: nw-resize;
}