/* Additional styles for glassmorphism & components */
:root {
  --ring: rgba(0,0,0,0.08);
}
/* adapt ring in dark mode */
:root.dark {
  --ring: rgba(255,255,255,0.08);
}
.glass {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--ring);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* dark glass */
.dark .glass {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.card {
  @apply glass p-6 rounded-2xl;
}
.icon-wrap {
  @apply inline-flex items-center justify-center rounded-xl p-3 bg-white/5 ring-1 ring-white/10;
}
.card-title {
  @apply mt-4 text-lg font-bold;
}
.card-text {
  @apply mt-2 text-slate-500 dark:text-slate-300;
}
.code {
  @apply block overflow-x-auto rounded-xl bg-black/5 dark:bg-black/40 p-4 text-sm leading-relaxed ring-1 ring-white/10;
}
.btn-primary {
  @apply inline-flex items-center justify-center rounded-xl px-4 py-2 font-semibold text-slate-900 bg-cyan-400 hover:bg-cyan-300 transition;
}
.btn-ghost {
  @apply inline-flex items-center justify-center rounded-xl px-4 py-2 font-semibold text-cyan-600 dark:text-cyan-300 ring-1 ring-cyan-300/10 hover:bg-cyan-300/10 transition;
}
.nav-link {
  @apply text-slate-700 dark:text-slate-200 hover:text-black dark:hover:text-white transition;
}
.link {
  @apply hover:text-slate-900 dark:hover:text-white hover:underline;
}
.social {
  @apply inline-flex items-center justify-center rounded-xl bg-white/5 p-2 ring-1 ring-white/10 hover:bg-white/10 transition;
}

/* Dialog styling fallback */
dialog[open] {
  display: block;
}
