/*
 * Admin dashboard overrides.
 *
 * This file intentionally stays tiny: Bulma (public/assets/vendor/bulma)
 * handles layout, forms, buttons, cards, colours, and dark-mode support.
 * Only add rules here for things Bulma genuinely has no component for.
 */

/* Bulma has no built-in photo-thumbnail grid; a plain responsive CSS grid
   is simpler here than forcing Bulma's 12-column `columns` grid to do it. */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

#back-to-events {
    cursor: pointer;
}

/* Small swatch showing an event's admin-chosen background colour. The
   colour itself is per-event data, not a design token, so it's set via an
   inline style in admin.js — only the swatch's shape lives here. */
.color-swatch {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 0.4em;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Booth link: a real, clickable <a> (not a readonly input) next to a small
   copy button — used both on event cards and the event detail view. */
.booth-link-row {
    gap: 0.5rem;
}

.booth-link {
    font-size: 0.85rem;
    word-break: break-all;
}

.card .booth-link {
    flex: 1;
    min-width: 0;
}

#detail-logo-preview {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}
