/* Layout utilities and overrides for GA Tech glassmorphism theme.
   Design tokens in tokens.css. Component styles in theme.css. */

/* ---- Action buttons (shared across admin views) ---- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--gborder);
    border-radius: var(--r-sm);
    background: var(--glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    margin: 0 2px;
}
.btn-action:hover {
    background: var(--glass-input);
    color: var(--text-primary);
    border-color: var(--color-action);
}
.btn-action.btn-danger:hover {
    color: var(--color-error-text);
    border-color: var(--color-error-text);
    background: var(--color-error-bg);
}

/* ---- Shared form feedback ---- */
.field-error {
    display: none;
    color: var(--color-error-text);
    font-size: 11px;
    margin-top: 2px;
}
.field-error.visible { display: block; }
.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: 13px;
}
.alert-success {
    background: var(--color-success-bg, #e6f4ea);
    color: var(--color-success-text, #1e7e34);
    border: 1px solid var(--color-success-text, #1e7e34);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 13px;
}
[data-theme="dark"] .alert-success {
    background: var(--color-success-bg);
}

/* ---- Lightbox overlay (image preview) ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: default;
}
.lightbox-close-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    pointer-events: none;
}