/* Small additions on top of app.css (the compiled Tailwind CSS of the old site, vendored
   unchanged). Only for things React libraries used to provide: toasts, dialog state. */

.contents { display: contents; }
[hidden] { display: none !important; }
body.aiw-noscroll { overflow: hidden; }

/* Toaster (react-hot-toast default look, top-right) */
.aiw-toaster {
  position: fixed; top: 16px; right: 16px; left: 16px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none;
}
.aiw-toast {
  display: flex; align-items: center; gap: 10px; max-width: 350px;
  background: #fff; color: #363636; line-height: 1.3; font-size: 15px;
  padding: 8px 10px; border-radius: 8px; pointer-events: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .05);
  opacity: 0; transform: translateY(-12px) scale(.96); transition: opacity .2s, transform .2s;
}
.aiw-toast-in { opacity: 1; transform: none; }
.aiw-toast-icon { display: flex; flex-shrink: 0; }

/* Dialog: wrapper is only a positioning context; overlay + panel use app.css classes */
.aiw-dialog { position: fixed; inset: 0; z-index: 50; }
.aiw-dialog [role="dialog"] { max-height: calc(100vh - 2rem); overflow-y: auto; }

/* Dropdown menus (Radix DropdownMenu replacement): <details class="aiw-menu"> */
.aiw-menu { position: relative; }
.aiw-menu > summary { list-style: none; cursor: pointer; }
.aiw-menu > summary::-webkit-details-marker { display: none; }
.aiw-menu-panel { position: absolute; right: 0; z-index: 40; margin-top: 4px; min-width: 12rem; }

@keyframes aiw-spin { to { transform: rotate(360deg); } }
.aiw-spin { animation: aiw-spin 1s linear infinite; }
