/* =========================
   GLOBAL RESET & DESKTOP OS SHELL
========================= */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --taskbar-height: 64px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Mencegah scrollbar palsu dan sisa ruang kosong di bawah */
}

body {
  padding-bottom: var(--taskbar-height);
  position: relative;
}

/* ANTI-FLICKER & PERFORMA BACKGROUND */
.aurora, .noise {
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0); /* Dorong render ke layer GPU */
}

.icons-wrapper {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  height: 100%;
  overflow-y: auto; /* Scroll hanya di area ikon jika aplikasi banyak */
}

.icons-wrapper.loaded {
  opacity: 1;
}

/* =========================
   HP / DEFAULT (< 600px)
========================= */
.icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 16px;
  padding: 16px;
  justify-items: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.icon-item img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.icon-item span {
  font-size: 11px;
  margin-top: 6px;
  word-break: break-word;
}

/* =========================
   TABLET (>= 600px)
========================= */
@media (min-width: 600px) {
  :root {
    --taskbar-height: 70px;
  }

  .icons {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 22px;
    padding: 24px;
  }

  .icon-item img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .icon-item span {
    font-size: 13px;
  }
}

/* =========================
   DESKTOP (>= 1024px)
========================= */
@media (min-width: 1024px) {
  .icons {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 28px;
    padding: 32px 48px;
  }

  .icon-item img {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }
}