/*
 * Copyright (C) 2026 Plugixa (https://plugixa.com)
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 */

/* Admin fixes - Hide WordPress admin UI when React app is loaded */
#plugixarecipe-root {
    margin: 0;
    padding: 0;
}

/* Hide default WordPress admin footer and notices on our pages */
body.toplevel_page_plugixa-recipe #wpfooter,
body.recipes_page_plugixa-recipe-recipes #wpfooter,
body.recipes_page_plugixa-recipe-categories #wpfooter,
body.recipes_page_plugixa-recipe-cuisines #wpfooter,
body.recipes_page_plugixa-recipe-reviews #wpfooter,
body.recipes_page_plugixa-recipe-collections #wpfooter,
body.recipes_page_plugixa-recipe-views #wpfooter,
body.recipes_page_plugixa-recipe-shortcodes #wpfooter,
body.recipes_page_plugixa-recipe-settings #wpfooter {
    display: none;
}

/* Hide admin notices on plugin pages */
body.toplevel_page_plugixa-recipe .notice,
body.toplevel_page_plugixa-recipe .update-nag,
body.toplevel_page_plugixa-recipe #wpbody-content > .notice,
body.toplevel_page_plugixa-recipe #wpbody-content > .error,
body.toplevel_page_plugixa-recipe #wpbody-content > .updated {
    display: none !important;
}

/* Ensure our app takes full width */
#plugixarecipe-root .wrap {
    margin: 0;
}

/* =============================================
   Fullscreen Mode
   Triggered by .plugixarecipe-fullscreen on body
   ============================================= */

body.plugixarecipe-fullscreen #wpadminbar,
body.plugixarecipe-fullscreen #adminmenuwrap,
body.plugixarecipe-fullscreen #adminmenuback,
body.plugixarecipe-fullscreen #adminmenumain {
    display: none !important;
}

body.plugixarecipe-fullscreen #wpcontent,
body.plugixarecipe-fullscreen #wpbody {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.plugixarecipe-fullscreen #wpbody-content {
    padding-bottom: 0 !important;
}

body.plugixarecipe-fullscreen {
    overflow: hidden;
}

body.plugixarecipe-fullscreen #plugixarecipe-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #f0f0f1;
    overflow: auto;
}

#wpcontent {
    padding-left: 0px;
}

/* WordPress Media Library Modal */
.media-modal {
    z-index: 100500 !important;
}

.media-modal-backdrop {
    z-index: 100499 !important;
}
