* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: default;
  user-select: none;
}

.catalina-wallpaper {
  background: url('/api/images/77837aab8301aafbe459b024e7055b11de2b57be9c73d68bcd9d1a04be1ebd31') center center / cover no-repeat;
  background-color: #1a1a3e;
}

.frosted-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.frosted-dark {
  background: rgba(40, 40, 50, 0.75);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.dock-glass {
  background: rgba(200, 200, 220, 0.35);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.menubar-glass {
  background: rgba(230, 230, 240, 0.65);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
}

.window-shadow {
  box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 8px;
  color: transparent;
  transition: all 0.15s;
}

.traffic-light:hover {
  color: rgba(0, 0, 0, 0.6);
}

.tl-close { background: #ff5f57; border: 0.5px solid #e0443e; }
.tl-minimize { background: #ffbd2e; border: 0.5px solid #dea123; }
.tl-maximize { background: #28c840; border: 0.5px solid #1aab29; }

.dock-icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.dock-icon:hover {
  transform: translateY(-8px) scale(1.3);
}

.window-enter {
  animation: windowOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes windowOpen {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.window-titlebar {
  background: linear-gradient(180deg, #e8e8e8 0%, #d6d6d6 100%);
  border-bottom: 1px solid #b0b0b0;
}

.window-titlebar-focused {
  background: linear-gradient(180deg, #ebebeb 0%, #d4d4d4 100%);
  border-bottom: 1px solid #a8a8a8;
}

.boot-screen {
  animation: bootFade 0.5s ease-out 2.5s forwards;
}

@keyframes bootFade {
  to { opacity: 0; pointer-events: none; }
}

.boot-progress {
  animation: bootProgress 2s ease-in-out forwards;
}

@keyframes bootProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes launchpadIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

.launchpad-enter {
  animation: launchpadIn 0.3s ease-out forwards;
}

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

.safari-tab-active {
  background: white;
  border: 1px solid #c0c0c0;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
}

.safari-tab-inactive {
  background: #e8e8e8;
}

.context-menu {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.1);
}

.menu-dropdown {
  box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(0,0,0,0.1);
}

.chat-bubble-sent {
  background: #007AFF;
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-received {
  background: #e9e9eb;
  color: #000;
  border-radius: 18px 18px 18px 4px;
}

.calc-btn {
  transition: all 0.1s;
}
.calc-btn:active {
  filter: brightness(1.3);
  transform: scale(0.95);
}

.spotlight-overlay {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

input:focus, textarea:focus {
  outline: none;
}