/* ==========================================================================
   1. GLOBAL FONT
   ========================================================================== */
body, div, p, span, a, li, td, h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ==========================================================================
   2. MENU STRIPE
   ========================================================================== */
.WaGadgetMenuHorizontal .menuInner, 
.wa-menu-horizontal {
    background-color: #004a99 !important;
    border: none !important;
    height: 50px !important; 
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important; 
    overflow: visible !important; 
}

/* ==========================================================================
   3. MENU LIST
   ========================================================================== */
.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 50px !important;
    list-style: none !important;
}

/* ==========================================================================
   4. THE LABELS
   ========================================================================== */
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > span {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    color: #ffffff !important;
    padding: 0 20px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important; 
    line-height: normal !important; 
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   5. HOVER & SELECTED
   ========================================================================== */
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected > .item > a,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected > .item > span,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover > .item > a,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover > .item > span {
    background-color: #e67e22 !important; 
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    height: 50px !important; 
}

/* ==========================================================================
   6. LOGO & BUTTONS
   ========================================================================== */
.wa-header .wa-logo img { max-height: 50px !important; }
.wa-button, .itemBox a.button { background-color: #004a99 !important; }

/* ==========================================================================
   7. FOOTER STYLING
   ========================================================================== */
.wa-footer {
    text-align: center !important;
    padding: 20px 0 !important;
    background-color: #f9f9f9 !important;
}

/* ==========================================================================
   8. SUB-MENU & BLACK CONDITIONAL ARROWS
   ========================================================================== */
.WaGadgetMenuHorizontal .menuInner ul.secondLevel {
    background-color: #004a99 !important;
    border: 1px solid #003366 !important;
}

.WaGadgetMenuHorizontal .menuInner ul.secondLevel li a {
    color: #ffffff !important;
    background-color: #004a99 !important;
}

.WaGadgetMenuHorizontal .menuInner ul.secondLevel li:hover > .item > a {
    background-color: #e67e22 !important;
}

/* ARROW VISIBILITY & COLOR LOGIC */
.WaGadgetMenuHorizontal .menuInner .dir,
.WaGadgetMenuHorizontal .menuInner .wa-menu-indicator,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a:after,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > span:after {
    opacity: 0 !important;
    display: inline-block !important;
    margin-left: 8px !important;
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #000000 !important;
    content: "" !important;
    vertical-align: middle !important;
    transition: opacity 0.2s ease !important;
}

.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover .dir,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover .wa-menu-indicator,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover > .item > a:after,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:hover > .item > span:after,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected .dir,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected .wa-menu-indicator,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected > .item > a:after,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.selected > .item > span:after {
    opacity: 1 !important;
}

/* ==========================================================================
   8b. CUSTOM PARENT PAGE FOLDER ICONS
   ========================================================================== */

/* 1. Default State: Targets the text wrapper to ensure closed folder icon sits nicely inside flexbox */
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel) > .item > a::before,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel) > .item > span::before {
    content: "";
    display: inline-block !important;
    width: 18px !important;
    height: 16px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    background-image: url('https://westwindsvillage.com/resources/Theme/folder-closed.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* 2. Hover & Selected States: Handles full transition to open folder across links and spans */
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel):hover > .item > a::before,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel).selected > .item > a::before,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel):hover > .item > span::before,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li:has(.secondLevel).selected > .item > span::before {
    background-image: url('https://westwindsvillage.com/resources/Theme/folder-open.png') !important;
}

/* ==========================================================================
   9. DASHBOARD CARDS & IFRAMES
   ========================================================================== */
.dashboard-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e1e4e8;
    text-align: center;
}

.dashboard-card iframe {
    max-width: 100%;
    border: none;
    border-radius: 4px;
}

.dashboard-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.entry-container { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    max-width: 1250px; 
    margin: 0 auto; 
    border: 1px solid #ccc; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #fff; 
}

#content-view iframe {
    width: 100% !important;
    min-width: 750px; 
    border: none;
}

.chart-container { 
    position: relative !important;
    top: 30px !important;  
    left: 30px !important; 
    display: block !important;
}

/* ==========================================================================
   10. DR. BRUCE ENGINE COMPONENTS (GLOBAL BACKGROUND CORES)
   ========================================================================== */

/* Glossary Context Element Underline */
.glossary-link {
    color: #0284c7 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-bottom: 1px dashed #0284c7 !important;
    cursor: help !important;
    padding: 0 2px !important;
}

.glossary-link:hover {
    background-color: #e0f2fe !important;
    border-radius: 3px !important;
}

/* Contextual Definitions Anchor Box */
#dr-bruce-definition-popup {
    position: absolute;
    display: none;
    z-index: 105000; 
    width: 320px;
    background: #ffffff;
    border: 1px solid #004a99;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0px 8px 24px rgba(0, 74, 153, 0.2);
    color: #333333;
    font-size: 14px;
    line-height: 1.45;
}

/* Global Fixed Image Container Coordinates */
.bruce-global-float-zone { 
    position: fixed; 
    left: 25px; 
    top: 25%; 
    width: 1.15in; 
    z-index: 100000; 
}

.bruce-prod-img { 
    width: 1.15in; 
    height: auto; 
    cursor: pointer; 
    border-radius: 8px; 
    background: #ffffff; 
    animation: bruce-pulse-prod 3s infinite; 
}

/* Floating Notification Speech Bubble Bubble */
.bruce-prod-bubble { 
    display: none; 
    position: absolute; 
    left: 1.25in; 
    top: 0; 
    width: 280px; 
    background: #fdfdfd; 
    cursor: pointer; 
    border: 1px solid #004a99; 
    padding: 12px; 
    border-radius: 0 15px 15px 15px; 
    box-shadow: 6px 6px 20px rgba(0,0,0,0.15); 
    color: #333333; 
    font-size: 14px; 
    line-height: 1.45; 
}

/* Soft Notification Ring Pulse Animation */
@keyframes bruce-pulse-prod {
    0% { box-shadow: 0 0 0 0 rgba(0, 74, 153, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(0, 74, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 74, 153, 0); }
}