/* Dr Farid — CMS inline editor styles (loaded on public pages; only visible to staff) */

#cms-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #b3ddf0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 45, 71, 0.18);
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 14px;
}

#cms-status {
    color: #2f373d;
    font-weight: 600;
    max-width: 320px;
}

.cms-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.cms-btn-primary {
    background: #f6ac1b;
    color: #003d5e;
}
.cms-btn-primary:hover { background: #5fdbe1; color: #002d47; }

.cms-btn-ghost {
    background: transparent;
    color: #7e868c;
    border: 1px solid #d7dee3;
}
.cms-btn-ghost:hover { color: #2f373d; border-color: #b3ddf0; }

/* Highlight editable regions while in edit mode */
body.cms-editing [data-cms].cms-editable {
    outline: 2px dashed #0085c8;
    outline-offset: 3px;
    border-radius: 3px;
    transition: outline-color .15s ease;
}
body.cms-editing [data-cms].cms-editable:hover,
body.cms-editing [data-cms].cms-editable:focus {
    outline-color: #f6ac1b;
    outline-style: solid;
}

body.cms-editing img[data-cms].cms-image-edit {
    cursor: pointer;
}
body.cms-editing img[data-cms].cms-dirty {
    outline-color: #f45a2a !important;
    outline-style: solid !important;
}

/* Image picker modal */
.cms-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 45, 71, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Lato', system-ui, sans-serif;
}
.cms-modal {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 50px rgba(0, 45, 71, 0.35);
}
.cms-modal h4 {
    margin: 0 0 14px;
    color: #002d47;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
}
.cms-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7e868c;
    margin-bottom: 6px;
}
.cms-modal .cms-file,
.cms-modal .cms-url {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 14px;
}
.cms-modal .cms-url {
    padding: 9px 11px;
    border: 1px solid #d7dee3;
    border-radius: 8px;
}
.cms-modal .cms-url:focus { outline: none; border-color: #0085c8; }
.cms-modal-or {
    text-align: center;
    color: #9aa2a8;
    font-size: 12px;
    margin: 2px 0 12px;
}
.cms-modal-status {
    min-height: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #0085c8;
    margin-bottom: 12px;
}
.cms-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
