/* BioStudio AI — fullscreen All Apps overlay (Launchpad) */

.launchpad-overlay {
  position: fixed;
  inset: 0;
  z-index: 8900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(28px, 5vh, 48px) clamp(16px, 4vw, 40px) calc(var(--taskbar-h, 48px) + 28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.launchpad-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
#os.theme-macos .launchpad-overlay {
  padding-top: calc(var(--mac-menu-h, 28px) + 18px);
}

.launchpad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 22, 0.42);
  backdrop-filter: blur(44px) saturate(1.7);
  -webkit-backdrop-filter: blur(44px) saturate(1.7);
}
#os.dark .launchpad-backdrop {
  background: rgba(4, 6, 14, 0.58);
}

.launchpad-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 12% 18%, rgba(124, 92, 255, 0.38), transparent 62%),
    radial-gradient(ellipse 48% 38% at 88% 12%, rgba(47, 107, 255, 0.32), transparent 58%),
    radial-gradient(ellipse 42% 46% at 72% 88%, rgba(18, 184, 134, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 18% 92%, rgba(230, 73, 128, 0.18), transparent 52%);
}

.launchpad-searchbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(240px, 72vw);
  margin: 0 auto clamp(16px, 2.6vh, 24px);
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.launchpad-searchbar .icon {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.8;
}
.launchpad-search {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
  font-size: 13.5px !important;
  font-weight: 500;
  color: #fff !important;
  border-radius: 0 !important;
}
.launchpad-search::placeholder { color: rgba(255, 255, 255, 0.55); }
.launchpad-searchbar:focus-within {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.launchpad-stage {
  position: relative;
  z-index: 2;
  width: min(1080px, 96vw);
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.launchpad-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 32px);
  padding: 4px 4px 28px;
}

.launchpad-results-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.launchpad-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.launchpad-section-title {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.launchpad-empty {
  margin-top: 12vh;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 550;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: clamp(12px, 1.8vw, 22px) clamp(6px, 1.2vw, 14px);
  justify-items: center;
}

.launchpad-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 108px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.launchpad-icon:hover { transform: scale(1.06); }
.launchpad-icon.launching {
  animation: launchpad-bounce 0.22s ease;
}

.launchpad-icon-glyph {
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
}
.launchpad-icon-glyph .icon { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); }

.launchpad-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff453a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.launchpad-label {
  font-size: 12px;
  font-weight: 550;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@keyframes launchpad-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
}

@media (max-width: 640px) {
  .launchpad-grid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }
}
