* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 12px;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image: url(/anime-eyes-illustration.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #e4e7eb;
  overflow: hidden;
  user-select: none;
}

.top-bar {
  position: relative;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(22, 27, 46, 0.75);
  backdrop-filter: blur(14px);
  padding: 8px 24px;
  border-radius: 18px;
  border: 1px solid rgba(138, 92, 246, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.os-name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #c4b5fd;
  transition: color 0.2s ease;
}

.active-note-badge {
  font-size: 12px;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #ddd6fe;
  padding: 3px 10px;
  border-radius: 20px;
}

.welcome-open {
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.welcome-open:hover {
  transform: scale(1.08);
}

.time-element {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #a78bfa;
}

.desktop-icons {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 68px;
  z-index: 1;
}

.app-icon {
  width: 68px;
  height: 68px;
}

.notes-icon {
  width: 68px;
  height: 68px;
  padding: 10px;
  background-color: rgba(30, 27, 75, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  transition: all 0.2s ease;
}

.notes-icon:hover {
  transform: translateY(-2px);
  border-color: #a78bfa;
}

.notes-icon.selected {
  background-color: rgba(124, 58, 237, 0.65);
  border-color: #c4b5fd;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
}

.welcome-window,
.notes-window {
  position: absolute;
  background-color: rgba(26, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.close {
  background-color: #f43f5e;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.15s ease;
}

.close:hover {
  opacity: 0.85;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 58px;
}

.window-button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.window-button:hover {
  transform: scale(1.12);
  filter: brightness(1.15);
}

.close-button {
  background: #ff5f57;
}

.minimize-button {
  background: #febc2e;
}

.maximize-button {
  background: #28c840;
}

.welcome-window {
  top: 100px;
  left: calc(50% - 190px);
  width: 380px;
}

.welcome-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: move;
}

.welcome-text {
  margin: 0 0 0 12px;
  color: #ddd6fe;
  font-weight: 600;
  font-size: 14px;
}

.inside-welcome {
  background-color: #111222;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.inside-text {
  color: #f1f5f9;
  margin: 8px 0;
  font-size: 20px;
}

.notes-window {
  top: 90px;
  left: calc(50% - 290px);
  width: 580px;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #ddd6fe;
  cursor: move;
}

.header-text {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.header-spacer {
  width: 18px;
}

.notes-body {
  background-color: #0f1021;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  height: 420px;
  padding: 12px;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.notes-sidebar {
  background-color: #17182e;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex: 1;
}

.note-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  background-color: #21223d;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.15s ease;
}

.note-item:hover {
  background-color: #2e2f52;
  border-color: rgba(167, 139, 250, 0.4);
}

.note-item.active {
  background-color: #4338ca;
  border-color: #818cf8;
}

.sidebar-title {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
}

.sidebar-date {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.notes-editor {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  outline: none;
  background-color: #141529;
  border-radius: 10px;
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 14px;
}

.notes-editor blockquote {
  background-color: #1e1f3b;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #8b5cf6;
  color: #cbd5e1;
}

.notes-editor strong {
  color: #a78bfa;
}

.notes-editor ul {
  padding-left: 20px;
  margin: 8px 0;
}

.notes-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 170px;
}

.newnotebtn {
  background: linear-gradient(135deg, #02ffa6, #009543);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.calc-window {
  position: absolute;
  top: 140px;
  left: calc(50% - 130px);
  width: 260px;
  background-color: rgba(26, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.calc-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #0f1021;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
}

#calcDisplay {
  width: 100%;
  height: 46px;
  background: #141529;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 20px;
  font-family: monospace;
  text-align: right;
  padding: 0 10px;
  outline: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-btn {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: #21223d;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-btn:hover {
  background: #2e2f52;
}

.calc-btn.op {
  background: #4338ca;
  border-color: #818cf8;
}

.calc-btn.eq {
  background: #7c3aed;
  border-color: #c4b5fd;
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn.zero {
  grid-column: span 2;
}

.wallpaper-window {
  position: absolute;
  top: 120px;
  left: calc(50% - 250px);
  width: 500px;
  background-color: rgba(26, 27, 46, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.wallpaper-body {
  background: #0f1021;
  margin: 0 10px 10px 10px;
  padding: 16px;
  border-radius: 12px;
}

.wallpaper-body h3 {
  margin: 0 0 16px 0;
  color: #ddd6fe;
  font-size: 15px;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wallpaper-option {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.wallpaper-option:hover {
  transform: scale(1.03);
  border-color: #a78bfa;
}

.wallpaper-option.active {
  border-color: #c4b5fd;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.55);
}
/* lock screen */

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 20, 0.45);
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lock-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-screen-content {
  text-align: center;
}

.lock-time {
  margin: 0;
  font-size: 72px;
  font-weight: 300;
  color: white;
  letter-spacing: -2px;
}

.lock-date {
  margin: 8px 0 35px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.lock-user-image {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.lock-user h2 {
  margin: 10px 0;
  color: white;
  font-size: 18px;
}

.unlock-text {
  margin-top: 45px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  animation: unlockPulse 2s infinite;
}

@keyframes unlockPulse {
  0%, 100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}


/* maximized windows */

.welcome-window.maximized,
.notes-window.maximized,
.calc-window.maximized,
.wallpaper-window.maximized {
  position: fixed !important;
  top: 70px !important;
  left: 12px !important;
  width: calc(100vw - 24px) !important;
  height: calc(100vh - 82px) !important;
  z-index: 99998;
}

.notes-window.maximized .notes-body {
  height: calc(100vh - 145px);
}

.calc-window.maximized .calc-body {
  flex: 1;
}

.wallpaper-window.maximized .wallpaper-body {
  flex: 1;
}

.maximized {
  border-radius: 14px !important;
}