/* ==========================================================================
   1. HEADER & NAVBAR OVERRIDES (PURPLE / TEAL THEME)
   ========================================================================== */

/* Prevent body background bleed */
body, 
.wrapper, 
.skin-blue .wrapper {
    background-color: #F4F6F9 !important;
}

/* Header sentence case styling */
.navbar-default .navbar-nav > li > a {
    text-transform: lowercase;
}

.navbar-default .navbar-nav > li > a::first-letter {
    text-transform: uppercase;
}

/* Header title area font & alignment */
.main-header .logo {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: bold !important;
    font-size: 20px !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Force header title to white */
#headerLogo, 
.main-header .logo a, 
.main-header .logo span {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Background color of header logo container */
.skin-blue .main-header .logo {
    background-color: #165857 !important; 
    color: #ffffff !important;
    height: 60px !important;
    line-height: 60px !important;
}

/* Link color when hovered over */         
.skin-blue .main-header .logo:hover,
.skin-blue .main-header .logo > a:hover {
    background-color: #165857 !important;
    color: #ffffff !important; 
    text-decoration: none !important; 
}

/* Header navbar background to fill full screen width */  
.skin-blue .main-header .navbar,
.navbar {
    background-color: #165857 !important;
    min-height: 60px !important;
}

/* Removes extra space above tab links */  
.navbar-default .navbar-brand {
    display: none !important;
}

/* Navbar link text styling */  
.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
}

/* Selected tab styling */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
    color: #ffffff !important;
    background-color: #474747 !important;
}


/* ==========================================================================
   2. VALUEBOX TEXT COLOR FIX (FORCES ALL VALUE BOX TEXT TO SOLID WHITE)
   ========================================================================== */

.small-box,
.small-box *,
.small-box .inner,
.small-box .inner *,
.small-box h3,
.small-box p,
.small-box .icon-large,
.small-box .small-box-footer,
.bg-navy h3,
.bg-navy p,
.bg-navy .icon-large,
.bg-purple h3,
.bg-purple p,
.bg-teal h3,
.bg-teal p {
    color: #ffffff !important;
}


/* ==========================================================================
   3. SIDEBAR (WHITE/LIGHT THEME OVERRIDES)
   ========================================================================== */

/* Main Sidebar Background & Right Border */
.main-sidebar, 
.left-side, 
.skin-blue .main-sidebar {
    background-color: #F1F1F1 !important;
    border-right: 1px solid #e0e0e0 !important;
}

/* Adds a 15px space at top of sidebar before menu items start */
.main-sidebar .sidebar-menu {
    padding-top: 15px !important;
}

/* Menu Item Text and Icons (Inactive State) */
.skin-blue .sidebar-menu > li > a,
.sidebar-menu > li > a {
    color: #333333 !important;
    font-weight: 600;
}

/* Adds horizontal spacing between icon and text inside menu links */
.sidebar-menu > li > a i {
    margin-right: 8px !important;
}

/* Menu Item Hover State */
.skin-blue .sidebar-menu > li:hover > a,
.sidebar-menu > li:hover > a,
.sidebar-menu > li > a:hover {
    background-color: #f4f4f4 !important;
    color: #165857 !important;
}

/* Active (Selected) Sidebar Tab */
.skin-blue .sidebar-menu > li.active > a,
.sidebar-menu > li.active > a,
.sidebar-menu > li.active > a:hover {
    background-color: #e8f0f1 !important;
    color: #165857 !important;
    font-weight: bold;
    border-left: 4px solid #165857 !important;
}

/* Custom Labels, Headers & Dividers inside Sidebar */
.main-sidebar div,
.main-sidebar label {
    color: #333333 !important;
}

.main-sidebar hr {
    border-top: 1px solid #e0e0e0 !important;
}


/* ==========================================================================
   4. MAIN CONTENT & TYPOGRAPHY
   ========================================================================== */

/* Dashboard Content Area Background */
.content-wrapper, 
.right-side {
    font-family: 'Open Sans', sans-serif;
    background-color: #F4F6F9 !important;
}

h1 { font-family: 'Open Sans'; color: #165857; }
h2 { font-family: 'Open Sans'; color: #0A0C4A; }
/* Excludes h3 inside .small-box so valueBox numbers don't turn dark */
:not(.small-box) > h3 { font-family: 'Open Sans'; color: #490F52; }
h4 { font-family: 'Open Sans'; color: #165857; }
h5 { font-family: 'Open Sans'; color: #1AA1B7; }
h6 { font-family: 'Open Sans'; color: #23A595; }

hr {
    border-top: 2px solid #0A0C4A;
}


/* ==========================================================================
   5. BOX HEADER OVERRIDES (PRIMARY & INFO BOXES)
   ========================================================================== */

/* Header background for Primary and Info boxes */
.box.box-solid.box-primary > .box-header,
.box.box-solid.box-info > .box-header {
    background-color: #165857 !important;
    border-bottom: none !important;
}

/* Header text, titles, icons, and links for Primary and Info boxes */
.box.box-solid.box-primary > .box-header,
.box.box-solid.box-primary > .box-header .box-title,
.box.box-solid.box-primary > .box-header .box-title *,
.box.box-solid.box-primary > .box-header i,
.box.box-solid.box-primary > .box-header a,
.box.box-solid.box-info > .box-header,
.box.box-solid.box-info > .box-header .box-title,
.box.box-solid.box-info > .box-header .box-title *,
.box.box-solid.box-info > .box-header i,
.box.box-solid.box-info > .box-header a {
    color: #ffffff !important;
}

/* Outer box borders */
.box.box-solid.box-primary,
.box.box-solid.box-info {
    border: 1px solid #165857 !important;
}


/* ==========================================================================
   6. SUB-TAB (NAV-TAB) HIGHLIGHTING & FOCUS RING REMOVAL
   ========================================================================== */

/* Tab Container Background Cleanup */
.nav-tabs-custom {
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-tabs-custom > .nav-tabs {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Inactive/Default Sub-Tabs */
.nav-tabs-custom > .nav-tabs > li > a {
    background-color: #f4f4f4 !important;
    color: #555555 !important;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    border: 1px solid transparent !important;
}

/* Hover State for Inactive Sub-Tabs */
.nav-tabs-custom > .nav-tabs > li > a:hover {
    background-color: #e0e0e0 !important;
    color: #333333 !important;
}

/* Active (Selected) Sub-Tab */
.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active:hover > a {
    background-color: #81D0F0 !important;
    color: #000000 !important;
    border: 1px solid #81D0F0 !important;
    border-bottom-color: transparent !important;
}

/* Removes Yellow Outline & Focus Ring */
.nav-tabs-custom > .nav-tabs > li > a:focus,
.nav-tabs-custom > .nav-tabs > li > a:active,
.nav-tabs-custom > .nav-tabs > li.active > a:focus,
.nav-tabs-custom > .nav-tabs > li.active > a:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #81D0F0 !important;
}

/* Target the specific valueBox container by its output ID */
#case_rate_box .small-box {
  background-color: #52393B !important;
  color: #ffffff !important;
}


#ytd_cases_box .small-box {
  background-color: #0D262E !important;
  color: #ffffff !important;
}


#non_us_born_value_box .small-box {
  background-color: #52393B !important;
  color: #ffffff !important;
}

/* ==========================================================================
   7. REMOVE YELLOW TOP BORDER FROM ALL BOXES
   ========================================================================== */

/* Remove top border and shadow from all box containers */
.box, 
.box.box-warning,
.box.box-primary,
.box.box-danger,
.box.box-info,
.box.box-success,
.box.box-solid {
  border-top:
  
  none !important;
}

//* ==========================================================================
   8. PICKERINPUT DROPDOWN STYLING (FIXES WHITE HOVER / SELECTION TEXT)
   ========================================================================== */

/* Closed Button Styling */
.bootstrap-select .dropdown-toggle {
  background-color: #ffffff !important;
  color: #222222 !important;
  border: 1px solid #cccccc !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

/* Floating Menu Container (Light Blue Background) */
.bootstrap-select .dropdown-menu,
.bootstrap-select .dropdown-menu .inner,
.bootstrap-select .dropdown-menu ul.dropdown-menu {
  background-color: #e5ecf4 !important;
  border: 1px solid #cccccc !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
}

/* All Default / Unselected Options & Text Spans */
.bootstrap-select .dropdown-menu li a,
.bootstrap-select .dropdown-menu li a span,
.bootstrap-select .dropdown-menu li a span.text,
.bootstrap-select .dropdown-menu li a i.check-mark {
  color: #222222 !important;
  background-color: transparent !important; /* Removes white background box */
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Selected Option State (Soft Grey Top Highlight) */
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.selected a span.text {
  background-color: #dbe4ee !important;
  color: #222222 !important;
}

/* Hover / Active Highlight State (Forces Teal Green & Pure White Text) */
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li a:focus,
.bootstrap-select .dropdown-menu li.active a,
.bootstrap-select .dropdown-menu li.selected a:hover {
  background-color: #81D0F0 !important; /* Teal Green */
  color: #ffffff !important;
}

/* Force inner text spans, icons, and checkmarks to pure white on hover */
.bootstrap-select .dropdown-menu li a:hover *,
.bootstrap-select .dropdown-menu li a:focus *,
.bootstrap-select .dropdown-menu li.active a *,
.bootstrap-select .dropdown-menu li.selected a:hover * {
  background-color: transparent !important;
  color: #ffffff !important;
}

