/* Custom Dashboard Styles */
/* Ensure Font Awesome is loaded for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Make sure our custom stats boxes are visible */
#wcfm_dashboard .wcfm-collapse-content > .wcfm_dashboard_stats,
#wcfm_dashboard .wcfm_dashboard_stats:not([class*="wcfm_dashboard_stats"]) {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    padding: 10px !important;
    margin: 20px 0 !important;
    border: 1px solid #e5e5e5 !important;
    position: relative !important;
    clip: auto !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    justify-content: space-between;
    clear: both;
}

/* Make sure our stat blocks are visible */
#wcfm_dashboard .wcfm_dashboard_stats > .wcfm_dashboard_stats_block {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    border: 1px solid #e5e5e5 !important;
    position: relative !important;
    clip: auto !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    justify-content: space-between;
}

/* Style for individual stat blocks */
#wcfm_dashboard .wcfm_dashboard_stats > .wcfm_dashboard_stats_block {
    flex: 1;
    margin: 0 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    text-align: center;
}

.wcfm_dashboard_stats_block a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcfm_dashboard_stats_block .wcfmfa {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 2;
    text-align: center;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 1.5em;
    color: #0073aa;
}

.wcfm_dashboard_stats_block strong {
    display: block;
    font-size: 1.5em;
    color: #0073aa;
    line-height: 1.2;
}

/* Hide Store Stats, Inquiries, and Latest Topics boxes - Aggressive targeting */
/* Target by element structure */
#wcfm-main-contentainer .wcfm-dashboard-box,
#wcfm-main-contentainer .wcfm_dashboard_stats,
#wcfm-main-contentainer .wcfm_dashboard_inquiries,
#wcfm-main-contentainer .wcfm_dashboard_latest_topics,
#wcfm-main-contentainer .wcfm_dashboard_stats_box,
#wcfm-main-contentainer .wcfm_dashboard_inquiries_box,
#wcfm-main-contentainer .wcfm_dashboard_latest_topics_box,
.wcfm_dashboard_stats_container,
.wcfm_dashboard_inquiries_container,
.wcfm_dashboard_topics_container,
.wcfm_dashboard_stats_wrapper,
.wcfm_dashboard_inquiries_wrapper,
.wcfm_dashboard_topics_wrapper,
/* Target by text content using attribute selectors */
.wcfm_dashboard_box:has(h2:contains('Statistics')),
.wcfm_dashboard_box:has(h2:contains('Inquiries')),
.wcfm_dashboard_box:has(h2:contains('Latest Topics')),
/* Target by ID if exists */
#wcfm_dashboard_stats,
#wcfm_dashboard_inquiries,
#wcfm_dashboard_topics,
/* Target by class patterns */
[class*="wcfm_dashboard_stats"],
[class*="wcfm_dashboard_inquiries"],
[class*="wcfm_dashboard_topics"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
}

/* Target parent containers that might be forcing display */
.wcfm-container .wcfm-content,
.wcfm-dashboard-widgets,
.wcfm-dashboard-widgets .wcfm-dashboard-widget,
.wcfm-dashboard-widgets .wcfm-dashboard-widget-wrap {
    /* Reset any forced display properties */
    display: block !important;
}

/* Hide any empty space or gaps */
.wcfm_dashboard_box:empty,
.wcfm_dashboard_box:blank {
    display: none !important;
}

/* Force hide using !important to override any inline styles */
body #wcfm-main-contentainer .wcfm_dashboard_box,
body #wcfm-main-contentainer .wcfm_dashboard_widget,
body #wcfm-main-contentainer .wcfm_dashboard_widget_heading,
body #wcfm-main-contentainer .wcfm_dashboard_widget_content {
    /* Ensure all states are hidden */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
}
