/* ==========================================================================
   1. GLOBAL FONT ENFORCEMENT & STRUCTURE
   ========================================================================== */
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 & 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
   ========================================================================== */
.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;
}

.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. PRODUCTION ENGINE COMPONENTS (UNIFIED DR. BRUCE SHELL LAYER)
   ========================================================================== */
   /* Floating Character Layout Settings (Enlarged) */


/* ==========================================================================
   10. PRODUCTION ENGINE COMPONENTS (UNIFIED DR. BRUCE SHELL LAYER)
   ========================================================================== */

/* Floating Character Layout Settings (16:9 Ratio Override) */
#bruceTrueGlobalRoot { 
  position: fixed !important;
  left: 25px !important; 
  top: 25% !important; 
  width: 175px !important; 
  min-width: 175px !important;
  z-index: 2147483640 !important; 
  display: block !important;
}

#bruceTrueGlobalRoot .bruce-prod-img { 
  width: 175px !important; 
  height: 98px !important; /* 175px / 1.777 ratio = 98px */
  object-fit: contain !important; 
  min-width: 175px !important; 
  max-width: none !important; 
  cursor: pointer !important; 
  border-radius: 8px !important; 
  display: block !important; 
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important; 
}

/* The "New Message" Pulsing Glow */
.bruce-active-glow {
  box-shadow: 0 0 20px 6px rgba(16, 185, 129, 0.7) !important;
  border: 2px solid #10b981 !important;
  animation: drBrucePulse 2s infinite !important;
}
/* Force the specific span element to accept the pointer cursor */
.drbruce-term, .drbruce-term span {
  cursor: pointer !important;
  pointer-events: auto !important;
}
/* The animation loop that creates the breathing effect */
@keyframes drBrucePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Character Speech Bubble */
#bruceBubbleGlobal {
  display: none; 
  position: absolute; 
  width: 310px; 
  background: #ffffff;
  border: 1px solid #004a99; 
  padding: 12px; 
  box-shadow: 6px 6px 20px rgba(0,0,0,0.15);
  color: #333333; 
  font-size: 14px; 
  line-height: 1.45; 
  z-index: 2147483645 !important;
  left: 190px; /* Pushed out past the 175px avatar */
  top: 0; 
  border-radius: 0 15px 15px 15px; 
  font-family: Arial, sans-serif !important;
}