/* Fullscreen Dialog Overrides */

/* Override Basecoat's default dialog positioning for fullscreen modals */
.dialog > article.w-full.h-full {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  translate: none !important;
}

/* Hide body scrollbar when fullscreen dialog is open */
body:has(.dialog[open] > article.w-full.h-full) {
  overflow: hidden;
}

/* Ensure fullscreen dialogs have proper backdrop */
.dialog:has(> article.w-full.h-full)::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Smooth transitions for fullscreen dialogs */
.dialog > article.w-full.h-full {
  transition: opacity 0.2s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .dialog > article.w-full.h-full {
    /* Ensure it covers mobile viewport properly */
    width: 100vw !important;
    height: 100vh !important;
  }
}