/* In-page confirmation dialog (assets/js/sky-confirm.js). Built from the admin's own tokens: --navbar-bg, --text-color,
   --text-muted, --border-color, --card-shadow, --sidebar-bg, the card radius (0.75rem), --font-ui and Bootstrap's
   .btn / .btn-danger / .btn-primary / .btn-light. No colours of its own except the two icon circles, which use the
   same colours as the admin's red/blue buttons. */
.sky-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--font-ui, inherit); }
.sky-modal[hidden] { display: none; }
.sky-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.55); animation: skyModalFade 0.15s ease-out; }
.sky-modal__panel {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 0.75rem;
    background: var(--navbar-bg, #fff);
    color: var(--text-color, #1F2937);
    box-shadow: var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)), 0 20px 40px -12px rgb(17 24 39 / 0.35);
    animation: skyModalPop 0.16s ease-out;
}
.sky-modal__panel:focus { outline: none; }
.sky-modal__head { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color, #E5E7EB); }
.sky-modal__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff; font-size: 1.05rem; background: #1a6fb0; }
.sky-modal--danger .sky-modal__icon { background: #dc3545; }
.sky-modal__title { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--text-color, #1F2937); }
.sky-modal__body { padding: 1rem 1.25rem; }
.sky-modal__msg { margin: 0; color: var(--text-muted, #6B7280); line-height: 1.55; }
.sky-modal__msg[hidden] { display: none; }
.sky-modal__input { margin-top: 0.75rem; }
.sky-modal__actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; padding: 0.85rem 1.25rem; border-top: 1px solid var(--border-color, #E5E7EB); background: var(--content-bg, #F9FAFB); border-radius: 0 0 0.75rem 0.75rem; }
.sky-modal__actions .btn { min-width: 6rem; min-height: 44px; } /* easy to tap (px, because the admin's rem is a little under 16 px) */
.sky-modal__actions .btn-light { border: 1px solid var(--border-color, #E5E7EB); background: #fff; }
html.sky-modal-open { overflow: hidden; }
@keyframes skyModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes skyModalPop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sky-modal__backdrop, .sky-modal__panel { animation: none; } }
@media (max-width: 420px) { .sky-modal__actions .btn { flex: 1 1 100%; } .sky-modal__head, .sky-modal__body, .sky-modal__actions { padding-left: 1rem; padding-right: 1rem; } }
