/* FileShare UI · css/dialogs.css · Dialogs, toasts, upload progress. Loaded in the order listed in index.html. */
/* ---------------------------------------------------------------- dialogs, toast, uploads */
.dialog { border: 0; border-radius: 6px; padding: 22px 24px; width: min(420px, 92vw); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.dialog-wide { width: min(640px, 94vw); }
.dialog::backdrop { background: rgba(20, 30, 40, .4); }
.dialog h2 { margin: 0; font-size: 18px; font-weight: 500; }
.dialog p { margin: 0; }
.dstack { display: grid; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.plugs { display: flex; align-items: stretch; }
.plug { flex: 1; display: grid; padding: 10px 12px 10px 16px; border-radius: 4px; position: relative; min-width: 0; }
.plug::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; }
.plug-db { background: #E3F4EC; } .plug-db::before { background: var(--c-green); }
.plug-store { background: #E3EDF8; } .plug-store::before { background: var(--c-blue); }
.plug-kind { font-size: 12px; color: var(--muted); }
.plug-name { font-weight: 500; font-size: 15px; }
.plug-detail { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.plug-wire { width: 36px; display: grid; place-items: center; }
.plug-wire span { width: 100%; height: 2px; background: linear-gradient(90deg, var(--c-green), var(--c-blue)); }

.uploads { position: fixed; left: 16px; bottom: 16px; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 8px; z-index: 50; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 13px; }
.upload-item { display: grid; gap: 4px; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-bar { height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--c-green); transition: width .2s linear; }
.upload-item.failed .upload-name { color: var(--danger); }

.toast { position: fixed; right: 16px; bottom: 16px; max-width: 440px; padding: 10px 16px; border-radius: 4px; background: #263238; color: #fff; z-index: 60; }
.toast.error { background: var(--danger); }
