/* --- 1. SITE HEADER CONTAINER --- */
#wpadminbar {
    z-index: 130000 !important;
    position: fixed !important;
    pointer-events: auto !important;
}

#bx-site-header {
    position: sticky;
    width: 100%;
    z-index: 9998;
    background: #ffffff;
    top: 0;
    transition: top 0.3s ease;
}

.logged-in #bx-site-header {
    top: 64px;
}

/* --- 2. SCROLL LOGIC --- */
#bx-site-header.scrolled .bx-utility-bar {
    height: 0 !important;
    padding: 0 !important;
    opacity: 0;
    overflow: hidden;
    border: none !important;
}

#bx-site-header.scrolled .bx-main-bar {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#bx-site-header.scrolled .bx-logo {
    transform: none;
    margin-top: 0 !important;
}

#bx-site-header.scrolled .bx-logo img,
#bx-site-header.scrolled .logo-link img,
#bx-site-header.scrolled .logo img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
}

/* --- 3. ADMIN BAR STYLES --- */
.bx-top-bar {
    background-color: #4338ca;
    width: 100%;
    height: 64px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
}

.bx-dash-btn-abs {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 64px;
    background-color: #ffffff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none !important;
    z-index: 10001;
    transition: all 0.2s ease;
}
.bx-dash-btn-abs:hover {
    background-color: #f3f4f6;
    color: #1e1b4b;
}

.bx-dash-settings-btn {
    left: 64px;
    width: 52px;
    color: #7c3aed;
    border-left: 1px solid #e5e7eb;
}

.bx-dash-settings-btn:hover {
    background-color: #faf5ff;
    color: #6d28d9;
}

.bx-page-details-btn {
    width: 32px;
    height: auto;
    border-radius: 3px;
    border: none;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    padding: 8px;
}

.bx-page-details-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.bx-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bx-left-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: 1;
}

.bx-action-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: stretch;
}

.bx-btn {
    background-color: transparent !important;
    color: #fff !important;
    padding: 8px 12px;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.bx-action-card {
    justify-content: flex-start;
    gap: 16px !important;
    padding: 16px 18px !important;
    min-width: 190px;
    background: rgba(255, 255, 255, 0.12);
}
.bx-action-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.bx-action-card .bx-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bx-action-card .bx-action-icon i {
    font-size: 17px;
    color: #fff;
}

.bx-action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.bx-action-label {
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    font-family: poppins !important;
    color: #fff;
}
.bx-action-detail {
    font-size: 12px;
    font-weight: 400;
    padding-top: 3px;
    color: rgba(227, 217, 255, 0.95);
}

@media (max-width: 1030px) {
    .bx-top-bar .bx-action-detail {
        display: none !important;
    }

    .bx-top-bar .bx-action-grid {
        gap: 8px;
    }

    .bx-top-bar .bx-action-card {
        gap: 10px !important;
        padding: 10px 12px !important;
        min-width: 0;
    }
}

.bx-edit-btn {
    background-color: #42a47f !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bx-logout-btn-abs {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 30px;
    background-color: #ffffff;
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    z-index: 10001;
    transition: all 0.2s ease;
}

.bx-logout-btn-abs:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* --- 4. PRIMARY MENU SPACING (OVERRIDE) --- */
#bx-site-header .primary-menu ul.menu {
    display: flex;
    gap: var(--bx-menu-gap, 18px) !important;
}
#bx-site-header .primary-menu ul.menu > li {
    margin-right: 0 !important;
}
