:root {
  --apple-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --apple-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2f6, #d6dee8);
  transition: background 0.4s;
}

body.dark {
  background: linear-gradient(180deg, #0e1014, #1a1d24);
  color: white;
}

/* LOGIN */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

#login-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, #4b5cff, #1b1f40);
  filter: blur(40px);
  transform: scale(1.2);
}

#login-panel {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#login-time {
  font-size: 84px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 30px;
}

#login-user {
  padding: 28px 36px;
  border-radius: 30px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  margin: 0 auto 12px;
}

.username {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
}

#login-btn {
  padding: 10px 26px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
}

/* MENU BAR */
#menu-bar {
  height: 28px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(25px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

/* SPOTLIGHT */
#spotlight {
  position: fixed;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  display: none;
}

#spotlight input {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.85);
}

/* CONTROL CENTER */
#control-center {
  position: fixed;
  top: 32px;
  right: 12px;
  display: none;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(30px);
  padding: 14px;
  border-radius: 18px;
}

.cc-tile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* WINDOWS */
.window {
  position: absolute;
  width: 440px;
  height: 300px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(35px);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.titlebar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.close { background:#ff5f57 }
.min   { background:#ffbd2e }
.max   { background:#28c840 }

.content {
  padding: 18px;
}

/* DOCK */
#dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  padding: 12px 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(40px);
}

.dock-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.25s;
}

.dock-icon:hover {
  transform: scale(1.35) translateY(-8px);
}
