/* Shared branding layer: loaded after theme CSS for consistent logo + favicon UX */

.astra-brand-logo {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.astra-brand-logo-frame {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.astra-brand-logo-frame-login {
    width: 340px !important;
    max-width: 100% !important;
    height: 114px !important;
    margin: 0 auto 8px !important;
}

.astra-brand-logo-frame-sidebar {
    width: 230px !important;
    max-width: 100% !important;
    height: 82px !important;
    margin: 0 auto 6px !important;
    justify-content: center !important;
}

.astra-brand-logo-login {
    width: 390px !important;
    max-width: none !important;
    transform: translateX(0) !important;
}

.astra-brand-logo-sidebar {
    width: 300px !important;
    max-width: none !important;
    transform: translateX(0) !important;
}

.sidebar-logo .sidebar-logo-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* Force consistent visual centering in sidebar across all themes */
body.ui-classic .sidebar-logo .astra-brand-logo-frame-sidebar,
body.ui-astra .sidebar-logo .astra-brand-logo-frame-sidebar {
    width: 230px !important;
    height: 82px !important;
    overflow: visible !important;
}

body.ui-classic .sidebar-logo .astra-brand-logo-sidebar,
body.ui-astra .sidebar-logo .astra-brand-logo-sidebar {
    width: 230px !important;
    max-width: 100% !important;
    height: auto !important;
    transform: translateX(-10px) !important;
    transform-origin: center center !important;
}

@media (max-width: 640px) {
    .astra-brand-logo-login {
        width: 280px !important;
    }
}
