/* Admin action bar — desktop-only redesign (event detail page).
   Scope: min-width 768px only. Mobile keeps its own separate markup/CSS
   (.event-admin-toolbar-mobile / admin-actions-mobile.css) untouched. */
@media (min-width: 768px) {

    .adminbar-desktop-wrap {
        width: 100%;
        background: #f4f6f9;
        border-bottom: 1px solid #e4e8ef;
        padding: 10px 0;
    }
    .adminbar-inner {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .adminbar-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #1a56db;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        background: none;
        border: none;
    }
    .adminbar-back:hover,
    .adminbar-back:focus-visible { color: #1a56db; text-decoration: underline; }

    .adminbar-sep {
        width: 1px;
        height: 22px;
        background: #dde2ea;
        flex-shrink: 0;
    }

    .adminbar-views {
        font-size: 13px;
        color: #6b7280;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .adminbar-status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
    .adminbar-status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #9ca3af;
        flex-shrink: 0;
    }
    .adminbar-status.is-visible { color: #0f7a3d; }
    .adminbar-status.is-visible .adminbar-status-dot { background: #16a34a; }
    .adminbar-status.is-hidden { color: #6b7280; }

    .adminbar-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .adminbar-share-label {
        font-size: 12.5px;
        color: #6b7280;
        white-space: nowrap;
    }

    /* Segmented FB/IG toggle — the underlying checkboxes stay in the DOM
       with their real name/value, just visually hidden; the <label>s are
       styled as the segments so the form keeps working unmodified. */
    .adminbar-toggle {
        display: flex;
        border: 1px solid #d7dce5;
        border-radius: 9px;
        overflow: hidden;
        background: #fff;
    }
    .adminbar-toggle-seg {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 13px;
        font-size: 12.5px;
        font-weight: 600;
        color: #6b7280;
        background: #fff;
        cursor: pointer;
        transition: background-color .15s, color .15s;
    }
    .adminbar-toggle-seg + .adminbar-toggle-seg { border-left: 1px solid #d7dce5; }
    .adminbar-toggle-seg input {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
    .adminbar-toggle-seg:has(input:checked) {
        background: #1a56db;
        color: #fff;
    }

    .adminbar-edit-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        height: 38px;
        padding: 0 16px;
        border-radius: 9px;
        border: none;
        background: #1a56db;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    .adminbar-edit-btn:hover,
    .adminbar-edit-btn:focus-visible { background: #1749b8; color: #fff; }

    /* ---- Overflow menu ---- */
    .adminbar-menu-wrap { position: relative; }

    .adminbar-menu-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 9px;
        border: 1px solid #d7dce5;
        background: #fff;
        color: #4b5563;
        font-size: 16px;
    }
    .adminbar-menu-trigger:hover,
    .adminbar-menu-trigger:focus-visible,
    .adminbar-menu-trigger[aria-expanded="true"] { border-color: #b7bfcc; background: #f8f9fb; }

    .adminbar-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 260px;
        background: #fff;
        border: 1px solid #e3e7ee;
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(22,33,62,.14);
        padding: 8px;
        z-index: 20;
    }
    .adminbar-menu[hidden] { display: none; }

    .adminbar-menu-item {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        height: 36px;
        padding: 0 10px;
        border: none;
        background: none;
        border-radius: 8px;
        color: #374151;
        font-size: 13.5px;
        text-align: left;
    }
    .adminbar-menu-item:hover,
    .adminbar-menu-item:focus-visible { background: #f4f6f9; }
    .adminbar-menu-item.is-danger { color: #b91c1c; }
    .adminbar-menu-item.is-danger:hover,
    .adminbar-menu-item.is-danger:focus-visible { background: #fdf1f1; }

    .adminbar-menu-divider {
        height: 1px;
        background: #eaedf3;
        margin: 6px 2px;
    }
}
