/**
 * Shop Explorer Admin Styles
 */

/* Admin page wrapper */
#shopexplore_dashboard {
    margin: 20px 0;
}

/* Remove WordPress admin notices on our pages */
.toplevel_page_shop-explorer .notice,
.toplevel_page_shop-explorer .error,
.toplevel_page_shop-explorer .updated {
    display: none !important;
}

/* Custom admin styles */
.shop-explorer-admin-wrapper {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.shop-explorer-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.shop-explorer-error {
    padding: 20px;
    background: #fff;
    border-left: 4px solid #dc3232;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Material-UI overrides for WordPress admin */
.MuiContainer-root {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.MuiPaper-root {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #shopexplore_dashboard {
        margin: 10px 0;
    }
}


/* Shop Explorer Menu Icon Styles */
#adminmenu li#toplevel_page_shop-explorer .wp-menu-image.dashicons-before {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

#adminmenu li#toplevel_page_shop-explorer .wp-menu-image.dashicons-before::before {
    display: none;
}

#adminmenu li#toplevel_page_shop-explorer .wp-menu-image img {
    width: 27px;
    height: 27px;
    max-width: 27px;
    max-height: 27px;
    padding: 0;
    margin: 0 auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: block;
}

#adminmenu li#toplevel_page_shop-explorer:hover .wp-menu-image img,
#adminmenu li#toplevel_page_shop-explorer.wp-has-current-submenu .wp-menu-image img,
#adminmenu li#toplevel_page_shop-explorer.current .wp-menu-image img {
    opacity: 1;
}

/* Collapsed menu state */
#adminmenu.folded li#toplevel_page_shop-explorer .wp-menu-image img {
    width: 20px;
    height: 20px;
}
