/* Status badges */
mark.status-new {
    --pico-mark-background-color: #546e7a;
    --pico-mark-color: #fff;
}

mark.status-processing {
    --pico-mark-background-color: #f9a825;
    --pico-mark-color: #000;
}

mark.status-draft {
    --pico-mark-background-color: #2e7d32;
    --pico-mark-color: #fff;
}

mark.status-error {
    --pico-mark-background-color: #c62828;
    --pico-mark-color: #fff;
}

mark.status-gallery {
    --pico-mark-background-color: #7b1fa2;
    --pico-mark-color: #fff;
}

mark {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Compact table images */
table img {
    vertical-align: middle;
}

/* Environment badges */
.env-prod {
    color: #c62828;
    font-weight: bold;
}

.env-uat {
    color: #546e7a;
}

/* Action buttons in table */
td button {
    margin: 0 0.15rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-card input,
.gallery-card select {
    margin-bottom: 0.25rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.9em;
}

.gallery-card button {
    padding: 0.4rem 0.75rem;
    font-size: 0.9em;
}

.gallery-card-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.gallery-card-options button {
    grid-column: 1 / -1;
}

.gallery-edit-link {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85em;
    text-align: center;
}

.gallery-edit-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
