/* The slide-over drawer, the centered modal, the status dropdown footer, the backup manager. */ /* Split out of admin.css (#533). Loaded from admin.css in a fixed order — later sheets override earlier ones, so the order there is the cascade. */ /* ── Premium Slide-over Drawer & Badges Redesign ──────────────── */ /* Inline SVG Icon Global Styling */ .svg-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 1em; height: 1em; stroke-width: 2px; transition: transform 0.2s ease, color 0.15s ease; } /* Drag handles use IconGripVertical's square 24x24 viewBox, so keep the box square too — a 12x18 box would letterbox the glyph down to 12x12. */ .svg-drag { width: 18px; height: 18px; } h2 .svg-icon, h3 .svg-icon { margin-right: 0.5rem; font-size: 1.15em; color: var(--admin-accent); } /* Album Card Simplification & Grid Spacing */ .album-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin: 0.5rem 0 1.25rem; } .album-tile { background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 12px; overflow: hidden; position: relative; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .album-tile:hover { transform: translateY(-2px); border-color: var(--admin-border-hover); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); } [data-theme='light'] .album-tile:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); } .album-tile-cover { aspect-ratio: 16 / 11; border-bottom: 1px solid var(--admin-border); position: relative; background: var(--admin-bg-elevated); overflow: hidden; } .album-tile-placeholder { color: var(--admin-text-muted); font-size: 1.75rem; } .album-tile-overlay { display: flex; gap: 0.5rem; } .album-tile-btn { background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(8px); border: 1px solid var(--admin-border); color: var(--admin-text); width: 32px; height: 32px; border-radius: 8px; transition: all 0.15s ease; } .album-tile-btn:hover { background: var(--admin-accent); color: #000; border-color: var(--admin-accent); } .album-tile-btn-danger:hover { background: var(--admin-error) !important; color: #fff !important; border-color: var(--admin-error) !important; } .album-tile-info { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; } .album-tile-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; } .album-tile-name { font-size: 0.85rem; font-weight: 600; color: var(--admin-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .album-tile-name.custom-title { color: var(--admin-accent); font-style: italic; } /* Badges for status indications */ .album-tile-badges { display: flex; gap: 0.25rem; flex-shrink: 0; } .album-tile-badges .badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 0.7rem; background: var(--admin-bg-elevated); border: 1px solid var(--admin-border); color: var(--admin-text-secondary); } .album-tile-badges .badge-password { color: var(--admin-accent); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); } .album-tile-badges .badge-hero { color: var(--admin-success); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.05); } /* Carries a mode name ("filename", "oldest"), so it cannot use the fixed icon-sized box the other badges share. */ .album-tile-badges .badge-sort { width: auto; min-width: 18px; padding: 0 5px; font-size: 0.62rem; letter-spacing: 0.03em; text-transform: uppercase; } /* ── Breitwand-Kiste Centered Modal styling ── */ .album-drawer-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--admin-overlay); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .album-drawer-overlay.open { opacity: 1; pointer-events: auto; } .album-drawer { width: 100%; /* Narrower than the subpage sheet (1100px) so the nested editor still reads as a layer on top of it, but wide enough for the same two-column body. */ max-width: 960px; max-height: 90vh; background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; transform: scale(0.95) translateY(10px); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .album-drawer-overlay.open .album-drawer { transform: scale(1) translateY(0); } .album-drawer-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--admin-border); display: flex; align-items: center; justify-content: space-between; background: var(--admin-bg-elevated); } .album-drawer-header h3 { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.5rem; } /* The drawer's only scroll container. Nesting a second scroller here is what used to clip the sort listbox popup — the two columns inside must stay overflow-free and scroll together. */ .album-drawer-body { flex: 1; min-height: 0; overflow-y: auto; /* Stop the scroll handing off to the page once the form hits its end. */ overscroll-behavior: contain; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; } @media (max-width: 768px) { .album-drawer { max-height: 95vh; } .album-drawer-body { padding: 1.25rem; } } /* Full-screen on phones, mirroring the subpage sheet. */ @media (max-width: 560px) { .album-drawer-overlay { padding: 0; } .album-drawer { max-width: none; max-height: none; height: 100dvh; border-radius: 0; border: none; } } .album-drawer-body::-webkit-scrollbar { width: 6px; } .album-drawer-body::-webkit-scrollbar-track { background: transparent; } .album-drawer-body::-webkit-scrollbar-thumb { background: var(--admin-border); border-radius: 3px; } .album-drawer-body::-webkit-scrollbar-thumb:hover { background: var(--admin-border-hover); } .album-drawer-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--admin-border); background: var(--admin-bg-elevated); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; } /* Narrow screens cannot fit both buttons plus the UUID on one line; drop the UUID onto its own row rather than squeezing the actions. */ @media (max-width: 560px) { .album-drawer-footer .uuid-copy-box { order: 1; flex-basis: 100%; } } /* Cover banner across the top of the drawer. flex-shrink must be off: the img inside is height:100%, so the box has no min-content height and the scrolling flex column would otherwise crush it to a couple of pixels. */ .modal-cover-container { width: 100%; flex: none; aspect-ratio: 21 / 9; max-height: 180px; border-radius: 10px; overflow: hidden; border: 1px solid var(--admin-border); background: var(--admin-bg); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .modal-cover-container img { width: 100%; height: 100%; object-fit: cover; display: block; } .modal-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--admin-text-muted); font-size: 2.5rem; } /* Album name + photo count, directly under the cover banner */ .modal-meta-box { display: flex; flex-direction: column; gap: 0.25rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--admin-border); } .modal-album-title { font-size: 1.1rem; font-weight: 700; color: var(--admin-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .modal-album-subtitle { font-size: 0.8rem; color: var(--admin-text-secondary); } /* Drawer Copy UUID element */ .uuid-copy-box { display: flex; align-items: center; background: var(--admin-bg-input); border: 1px solid var(--admin-border); border-radius: 6px; padding: 0.4rem 0.5rem 0.4rem 0.75rem; gap: 0.5rem; } .uuid-copy-box code { font-family: monospace; font-size: 0.75rem; color: var(--admin-text-secondary); flex: 1; word-break: break-all; user-select: all; } /* In the footer the UUID is secondary to the two action buttons: it takes the leftover width and truncates rather than wrapping the row onto two lines. */ .album-drawer-footer .uuid-copy-box { flex: 1; min-width: 0; padding: 0.3rem 0.35rem 0.3rem 0.6rem; } .album-drawer-footer .uuid-copy-box code { word-break: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .uuid-copy-btn { background: none; border: none; color: var(--admin-text-muted); cursor: pointer; padding: 0.25rem; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.15s ease; } .uuid-copy-btn:hover { color: var(--admin-accent); background: var(--admin-bg-elevated); } /* Section Card Improvements */ .section-card { background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .section-card:hover { border-color: var(--admin-border-hover); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } .section-header { border-bottom: 1px solid var(--admin-border); padding-bottom: 0.5rem; margin-bottom: 0.75rem; } .section-title-input { font-size: 0.95rem !important; font-weight: 700 !important; color: var(--admin-text) !important; border-radius: 6px !important; } .section-desc-input { border-color: transparent !important; background: transparent !important; padding-left: 0.4rem !important; color: var(--admin-text-secondary) !important; } .section-desc-input:focus { border-color: var(--admin-border) !important; background: var(--admin-bg-input) !important; } /* ── Modern Subpage Details Spacing ── */ .subpage-detail { margin-top: 1.5rem; border: 1px solid var(--admin-border); background: var(--admin-bg-elevated); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); } [data-theme='light'] .subpage-detail { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); } .subpage-meta { padding: 1.25rem; background: var(--admin-bg-raised); border-bottom: 1px solid var(--admin-border); } /* ── Status Dropdown Footer ── */ .status-dropdown-footer { padding: 0.5rem 0.85rem; background: var(--admin-bg-elevated); border-top: 1px solid var(--admin-border); display: flex; justify-content: flex-end; } .admin-btn-sm { padding: 0.35rem 0.65rem !important; font-size: 0.75rem !important; } /* ── Backup Manager Modal ────────────────────────────────────── */ .backup-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; animation: fadeIn 0.15s ease-out; } .backup-modal-container { background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 14px; width: 100%; max-width: 640px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); overflow: hidden; animation: scaleUp 0.15s cubic-bezier(0.16, 1, 0.3, 1); } .backup-modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--admin-border); background: var(--admin-bg-elevated); } .backup-modal-header h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--admin-text); } .backup-modal-subtitle { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--admin-text-muted); } .backup-modal-close-btn { background: none; border: none; font-size: 1.1rem; color: var(--admin-text-muted); cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 6px; line-height: 1; transition: all 0.15s; } .backup-modal-close-btn:hover { color: var(--admin-text); background: var(--admin-bg-input); } /* Modal Tabs */ .backup-modal-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--admin-border); background: var(--admin-bg-raised); } .backup-modal-tab { padding: 0.4rem 0.85rem; font-size: 0.82rem; font-weight: 600; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--admin-text-muted); cursor: pointer; transition: all 0.15s; } .backup-modal-tab:hover { color: var(--admin-text); background: var(--admin-bg-elevated); } .backup-modal-tab.active { background: var(--admin-bg-elevated); border-color: var(--admin-border); color: var(--admin-accent); } /* Modal Status Alert */ .backup-status-alert { margin: 0.75rem 1.5rem 0; padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.82rem; font-weight: 500; } .backup-status-alert.error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--admin-error, #ef4444); color: var(--admin-error, #ef4444); } .backup-status-alert.success { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--admin-success, #10b981); color: var(--admin-success, #10b981); } /* Confirmation Box */ .backup-confirm-box { margin: 0.75rem 1.5rem 0; padding: 1rem; background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 10px; } .backup-confirm-content strong { display: block; font-size: 0.9rem; color: var(--admin-text); margin-bottom: 0.25rem; } .backup-confirm-content p { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--admin-text-secondary); line-height: 1.4; } .backup-confirm-actions { display: flex; gap: 0.5rem; justify-content: flex-end; } /* Modal Body & List */ .backup-modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.5rem; } .backup-loading, .backup-empty { text-align: center; padding: 2.5rem 1rem; font-size: 0.85rem; color: var(--admin-text-muted); } .backup-list { display: flex; flex-direction: column; gap: 0.65rem; } .backup-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--admin-bg-elevated); border: 1px solid var(--admin-border); border-radius: 10px; transition: border-color 0.15s; } .backup-item:hover { border-color: var(--admin-border-hover); } .backup-item-info { display: flex; flex-direction: column; gap: 0.2rem; } .backup-item-title { display: flex; align-items: center; gap: 0.5rem; } .backup-filename { font-size: 0.88rem; font-weight: 600; color: var(--admin-text); } .backup-badge { font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; } .backup-badge.pre-restore { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); } .backup-badge.deleted { background: rgba(239, 68, 68, 0.1); color: var(--admin-error, #ef4444); border: 1px solid rgba(239, 68, 68, 0.3); } .backup-slug { font-size: 0.88rem; color: var(--admin-text); } .backup-item-meta code { font-family: monospace; font-size: 0.72rem; color: var(--admin-text-muted); } .backup-modal-footer { padding: 0.85rem 1.5rem; border-top: 1px solid var(--admin-border); background: var(--admin-bg-elevated); display: flex; justify-content: flex-end; } .backup-toggle-btn { margin-top: 0.4rem; padding: 0.55rem 0.85rem; background: var(--admin-bg-elevated); border: 1px dashed var(--admin-border); border-radius: 8px; color: var(--admin-text-secondary); font-size: 0.78rem; font-weight: 500; cursor: pointer; width: 100%; text-align: center; transition: all 0.15s ease; } .backup-toggle-btn:hover { background: var(--admin-bg-raised); border-color: var(--admin-accent); color: var(--admin-accent); }