/* ============================================================
   DOIT INDUSTRIES — TRADING APP BLUE / WHITE THEME
   Color Palette: White / Light Blue / Dark Navy
   ============================================================ */

:root {
  /* Override gold theme variables with blue palette */
  --gold:          #009CD9;
  --gold-deep:     #009CD9;
  --gold-light:    #009CD9;
  --gold-shine:    #E3F4FB;
  --gold-ultra:    #E3F4FB;
  --cream:         #E3F4FB;
  --cream-2:       #E3F4FB;
  --dark:          #000066;
  --dark-2:        #000066;
  --charcoal:      #000066;
  --warm-gray:     #36516F;
  --light-gray:    #B8DDED;
  --white:         #FFFFFF;
  --shadow-gold:   0 8px 40px rgba(0,156,217,0.20);
  --shadow-card:   0 4px 24px rgba(0,0,102,0.10);
  --grad-gold:     linear-gradient(135deg, #009CD9 0%, #2DB9EA 50%, #009CD9 100%);
  --grad-gold-v:   linear-gradient(180deg, #009CD9 0%, #0088BF 100%);
  --grad-dark:     linear-gradient(135deg, #000066 0%, #00004D 100%);
  --radius:        12px;
  --radius-lg:     20px;
}

/* ─── BODY ───────────────────────────────────────────────── */
body {
  background: #e3f4fb !important;
  color: var(--dark) !important;
}

/* ─── TOP BAR ───────────────────────────────────────────────── */
.top-bar {
  background: var(--dark-2);
}
.top-bar .container {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  gap: 24px;
}
.top-bar .clock-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 146px;
  justify-content: flex-start;
  margin-left: 0 !important;
  color: rgba(255,255,255,0.80);
  white-space: nowrap;
}
.top-bar .clock-item img.flg {
  width: 18px;
  height: auto;
  border-radius: 2px;
  display: inline;
  flex: 0 0 18px;
}
.top-bar .clock-item span {
  color: #ffffff !important;
  width: 122px;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 2px solid rgba(37,99,235,0.18) !important;
  box-shadow: 0 2px 20px rgba(15,40,73,0.10) !important;
}
.site-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 30px rgba(15,40,73,0.13) !important;
}

/* Navigation links */
.main-nav a {
  color: var(--dark-2) !important;
  font-weight: 600;
}
.nav-dropdown {
  align-items: center;
}
.nav-dropdown > a {
  gap: 0;
}
.nav-dropdown > a::before {
  border-color: currentColor;
}
.main-nav a::after {
  background: var(--grad-gold) !important;
}
.main-nav a:hover {
  color: var(--gold-deep) !important;
  background: rgba(37,99,235,0.07) !important;
}
.main-nav a.active { color: var(--gold-deep) !important; }

/* Dropdown */
.nav-dropdown-menu {
  background: var(--white) !important;
  border: 1px solid rgba(37,99,235,0.15) !important;
  box-shadow: 0 8px 40px rgba(15,40,73,0.15) !important;
}
.nav-dropdown-menu a {
  color: var(--dark-2) !important;
  justify-content: flex-start;
}
.nav-dropdown-menu a:hover {
  background: rgba(37,99,235,0.08) !important;
  color: var(--gold-deep) !important;
}

/* Login/Logout button */
.header-login-btn {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 15px rgba(37,99,235,0.38) !important;
}
.header-login-btn:hover {
  background: var(--dark-2) !important;
  color: var(--gold-shine) !important;
}

/* Hamburger lines */
.nav-toggle span { background: var(--dark-2) !important; }
.main-nav.open {
  background: var(--white) !important;
  border-top: 2px solid rgba(37,99,235,0.15) !important;
  border-bottom: 2px solid rgba(37,99,235,0.15) !important;
}
.nav-dropdown.open .nav-dropdown-menu {
  background: rgba(37,99,235,0.05) !important;
}

/* ─── PAGE HERO (inner pages) ───────────────────────────────── */
/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-gold {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35) !important;
}
.btn-gold:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 30px rgba(37,99,235,0.50) !important;
}
.btn-gold-outline {
  color: var(--gold-deep) !important;
  border-color: var(--gold-deep) !important;
}
.btn-gold-outline:hover {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
}

/* ─── FOOTER GRID (matching LiveRates.html layout) ─────────── */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(160px, 0.8fr) minmax(170px, 0.85fr) minmax(300px, 1.45fr);
  gap: 34px;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-contact-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  line-height: 1.65;
  margin-bottom: 16px;
}
.footer-contact-item i {
  width: 18px;
  text-align: center;
  margin-top: 4px;
}
.footer-contact-item span,
.footer-contact-item a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #000066 !important;
}
.site-footer::before {
  background: linear-gradient(90deg, #009CD9 0%, #2DB9EA 50%, #009CD9 100%) !important;
}
.footer-logo img { filter: brightness(0) invert(1) !important; }
.footer-heading { color: var(--gold-light) !important; }
.footer-heading::after { background: var(--grad-gold) !important; }
.footer-links a { color: rgba(255,255,255,0.65) !important; }
.footer-links a::before { color: var(--gold-light) !important; }
.footer-links a:hover { color: var(--gold-shine) !important; }
.footer-contact-item i { color: var(--gold-light) !important; }
.footer-contact-item a { color: rgba(255,255,255,0.72) !important; }
.footer-contact-item a:hover { color: var(--gold-shine) !important; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.10) !important; }
.footer-bottom p { color: rgba(255,255,255,0.48) !important; }
.footer-bottom a { color: var(--gold-light) !important; }

/* ─── CARD / SECTION BACKGROUNDS ───────────────────────────── */
.section {
  background: #e3f4fb;
}
.ui-page,
.ui-overlay-a,
.ui-page-theme-a,
.ui-page-theme-a .ui-panel-wrapper {
  background: #e3f4fb !important;
}

/* ─── PAGE HEADER TABLE (Orders / Trades table header row) ─── */
.pageHeaders,
table#tblHeader {
  background: var(--dark-2) !important;
  color: #ffffff !important;
}
table#tblHeader th {
  color: #ffffff !important;
}

/* ─── TABLE ROWS: BUY = blue, SELL = red ────────────────────── */
/* These use inline style="background-color:blue" which premium.css
   already remaps. Override to our brand blue. */
[style*="background-color:blue"]  { background-color: #009CD9 !important; color: #ffffff !important; }
[style*="background-color: blue"] { background-color: #009CD9 !important; color: #ffffff !important; }
[style*="background-color:red"]   { background-color: #DC2626 !important; color: #ffffff !important; }
[style*="background-color: red"]  { background-color: #DC2626 !important; color: #ffffff !important; }

/* ─── BUY / SELL BUTTONS in BuySell.htm ────────────────────── */
a[id="marketBuyButton"],
a[id="pendingBuyButton"] {
  background: #009CD9 !important;
  color: #ffffff !important;
  border-radius: 10px;
  padding: 10px 50px;
  font-size: 16px;
  font-weight: 600;
}
a[id="marketSellButton"],
a[id="pendingSellButton"] {
  background: #DC2626 !important;
  color: #ffffff !important;
  border-radius: 10px;
  padding: 10px 50px;
  font-size: 16px;
  font-weight: 600;
}

/* ─── LOGIN BUTTONS ─────────────────────────────────────────── */
input[id="generateOTPButton"],
input[id="btnLogin"],
input[id="btnLogoff"] {
  background: var(--dark-2) !important;
  color: #ffffff !important;
  border: none !important;
}

/* ─── SCRIP CODE DISPLAY (BuySell.htm) ──────────────────────── */
#ScripCode {
  color: var(--dark-2) !important;
  font-weight: bold;
}
#marketBidPrice,
#marketAskPrice {
  color: var(--dark-2) !important;
}

/* ─── RADIO BUTTONS (Market / Pending toggle) ────────────────── */
.ui-controlgroup-controls {
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(37,99,235,0.30) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15,40,73,0.08) !important;
}
.ui-controlgroup-controls .ui-radio {
  display: block !important;
  margin: 0 !important;
}
.ui-controlgroup-controls .ui-radio input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0) !important;
}
.ui-controlgroup-controls .ui-radio label,
.ui-controlgroup-controls label[for^="radio-choice"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-right: 1px solid rgba(37,99,235,0.20) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--dark-2) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.ui-controlgroup-controls .ui-radio:last-child label,
.ui-controlgroup-controls label[for^="radio-choice"]:last-child {
  border-right: 0 !important;
}
.ui-controlgroup-controls .ui-radio label:before,
.ui-controlgroup-controls .ui-radio label:after,
.ui-controlgroup-controls .ui-btn-icon-left:after,
.ui-controlgroup-controls .ui-btn-icon-right:after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}
.ui-controlgroup-controls .ui-radio label.ui-radio-on,
.ui-controlgroup-controls .ui-radio input[type="radio"]:checked + label {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
}
.ui-controlgroup-controls .ui-radio label:hover {
  background: rgba(37,99,235,0.08) !important;
  color: var(--gold-deep) !important;
}
.ui-controlgroup-controls .ui-radio label.ui-radio-on:hover {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
}

/* ─── SELECT / QUANTITY DROPDOWN FIX ────────────────────────── */
/* Native select */
select#select-native-marketorder,
select#select-native-pendingorder,
select[name="select-native-marketorder"],
select[name="select-native-pendingorder"] {
  color: #0F2849 !important;
  background-color: #ffffff !important;
  border: 1.5px solid #009CD9 !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #0F2849 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
select#select-native-marketorder option,
select#select-native-pendingorder option,
select[name="select-native-marketorder"] option,
select[name="select-native-pendingorder"] option {
  color: #0F2849 !important;
  background-color: #ffffff !important;
}

/* jQuery Mobile custom select button wrapper */
.ui-select .ui-btn,
.ui-select .ui-btn-text,
div.ui-field-contain .ui-select .ui-btn {
  color: #0F2849 !important;
  background: #ffffff !important;
  border: 1.5px solid #009CD9 !important;
  border-radius: 6px !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}
.ui-select .ui-btn .ui-icon {
  background-color: #009CD9 !important;
}

/* Any jQM-generated button in the form */
#MarketOrderWindowQuantity .ui-btn,
#PendingOrderWindowQuantity .ui-btn {
  color: #0F2849 !important;
  background: #ffffff !important;
  border: 1.5px solid #009CD9 !important;
  border-radius: 6px !important;
  text-shadow: none !important;
}

/* jQM select menu popup */
.ui-selectmenu .ui-header {
  background: var(--dark-2) !important;
  color: #ffffff !important;
}
.ui-selectmenu-list .ui-btn {
  color: #0F2849 !important;
  background: #ffffff !important;
}
.ui-selectmenu-list .ui-btn.ui-btn-active,
.ui-selectmenu-list .ui-btn:hover {
  background: rgba(37,99,235,0.12) !important;
  color: var(--gold-deep) !important;
}

/* ─── PRICE INPUT ────────────────────────────────────────────── */
#pendingPriceText {
  color: #0F2849 !important;
  background: #ffffff !important;
  border: 1.5px solid #009CD9 !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* ─── CARD CONTAINER (BuySell ui-content card) ───────────────── */
.ui-content[style*="background-color: #FFFFFF"],
.ui-content[style*="background-color:#FFFFFF"],
div[style*="background-color: #FFFFFF;border-radius"] {
  background-color: #ffffff !important;
  border: 1px solid rgba(37,99,235,0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(15,40,73,0.10) !important;
}

/* ─── SCROLLTOP BUTTON ──────────────────────────────────────── */
#scrollTop {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
}

/* ─── PRELOADER BAR ──────────────────────────────────────────── */
.preloader-bar::after { background: var(--grad-gold) !important; }

/* ─── BUY/SELL TRADING CARD (BuySell.htm) ────────────────────── */
/* The outer card wrapper */
.col-lg-4.col-md-6.mb-4.mt-4[style*="text-align:center"] {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* The ui-content card background */
.ui-content {
  background: #ffffff !important;
}

/* "Buy" / "Sell" column headers */
td[style*="color:#000;width:50%"] {
  color: var(--dark-2) !important;
  font-weight: 700;
}

/* Bid / Ask price labels */
label#marketBidPrice,
label#marketAskPrice {
  color: var(--dark-2) !important;
  font-weight: 900 !important;
}

/* Price and Quantity labels */
label[for="number-pattern"],
.ui-field-contain label {
  color: var(--dark-2) !important;
  font-weight: 600 !important;
}

/* ─── OVERIDE pageHeaders TABLE header row blue ────────────────── */
table.pageHeaders thead th,
#tblHeader th {
  color: #ffffff !important;
}

/* ─── ANY REMAINING var(--gold) inline styles resolve to blue ─── */
/* These are handled automatically because we override :root --gold */

/* ─── MOBILE RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
  .main-nav.open {
    border-top: 1.5px solid rgba(37,99,235,0.18) !important;
    border-bottom: 1.5px solid rgba(37,99,235,0.18) !important;
  }
}

h1, h2, h3, h4, h5, h6,
.heading,
.pageHeaders,
.main-nav a,
.nav-dropdown-menu a,
.footer-heading,
.footer-contact-item i,
i[class*="fa-"] {
  color: #000066 !important;
}

a,
a:hover,
.main-nav a:hover,
.main-nav a.active,
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active,
.breadcrumb-gold a,
.footer-links a:hover,
.footer-contact-item a:hover,
.footer-bottom a {
  color: #009CD9 !important;
}

/* Contact/footer icons must stay visible on blue backgrounds */
.contact-card-icon,
.contact-card-icon i,
.contact-card .contact-card-icon,
.contact-card .contact-card-icon i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.site-footer .footer-contact-item i,
footer .footer-contact-item i,
.footer-contact-item i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Final clock and scroll-top color consistency */
.top-bar .clock-item span,
.top-bar .clock-item span[id^="clock_"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#scrollTop,
#scrollTop,
html .scroll-to-top,
.scroll-to-top {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
}

#scrollTop i,
#scrollTop i,
html .scroll-to-top i,
.scroll-to-top i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#scrollTop:hover,
#scrollTop:hover,
html .scroll-to-top:hover,
.scroll-to-top:hover {
  background: #0088BF !important;
  background-color: #0088BF !important;
  border-color: #0088BF !important;
  color: #ffffff !important;
}

/* Final top-bar clock alignment across all pages */
.top-bar > .container,
.top-bar .container {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 24px !important;
}

.top-bar .clock-item {
  flex: 0 0 146px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

.top-bar .clock-item:last-child {
  margin-right: 0 !important;
}

/* Final modal close button design */
.modal .btn-close,
.modal-gold .modal-header .btn-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  border: 1px solid rgba(0, 0, 102, 0.12) !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000066'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293A1 1 0 0 1 .293 14.293L6.586 8 .293 1.707A1 1 0 0 1 .293.293z'/%3e%3c/svg%3e") !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  box-shadow: 0 8px 20px rgba(0, 0, 102, 0.18) !important;
  opacity: 1 !important;
  filter: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.modal .btn-close:hover,
.modal-gold .modal-header .btn-close:hover {
  background-color: #e3f4fb !important;
  box-shadow: 0 10px 24px rgba(0, 156, 217, 0.24) !important;
  transform: translateY(-1px) !important;
  opacity: 1 !important;
}

.modal .btn-close:focus,
.modal-gold .modal-header .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(0, 156, 217, 0.28), 0 8px 20px rgba(0, 0, 102, 0.18) !important;
  outline: none !important;
}

/* Absolute final scroll-top position and icon alignment */
#scrollTop,
#scrollTop,
html .scroll-to-top,
.scroll-to-top {
  position: fixed !important;
  bottom: 96px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

#scrollTop i,
#scrollTop i,
html .scroll-to-top i,
.scroll-to-top i {
  display: block !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
}

/* Final clock and scroll-top color consistency */
.top-bar .clock-item span,
.top-bar .clock-item span[id^="clock_"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#scrollTop {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
  position: fixed !important;
  bottom: 96px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

#scrollTop i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: block !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
}

#scrollTop:hover {
  background: #0088BF !important;
  background-color: #0088BF !important;
  border-color: #0088BF !important;
  color: #ffffff !important;
}

.btn-gold,
.header-login-btn,
button,
input[type="button"],
input[type="submit"],
.ui-btn-active,
#scrollTop,
input[id="generateOTPButton"],
input[id="btnLogin"],
input[id="btnLogoff"] {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
}

.btn-gold-outline,
.btn-white,
.btn-secondary,
button.secondary,
input.secondary {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #000066 !important;
  color: #000066 !important;
}

.site-footer,
#footer,
footer.site-footer {
  background: #000066 !important;
  background-color: #000066 !important;
}

.site-footer::before,
.footer-heading::after,
.gold-line,
.gold-divider,
.section-badge {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
}

body :is(.body, main, #main, #content, .main, .content, .page-content, .page-wrapper, section, .section, .ui-page, .ui-content, [data-role="content"]) :is(.text-white, .color-white, [style*="color:#fff"], [style*="color: #fff"], [style*="color:#FFF"], [style*="color: #FFF"], [style*="color:white"], [style*="color: white"]) {
  color: #000066 !important;
}

body :is(.body, main, #main, #content, .main, .content, .page-content, .page-wrapper, section, .section, .ui-page, .ui-content, [data-role="content"]) :is(p, span, div, li, label, td, th, small, strong):not(.btn):not(.ui-btn):not(.pageHeaders):not([class*="btn"]):not([style*="background"]):not([style*="color:red"]):not([style*="color:green"]) {
  color: #000066 !important;
}

#header :is(.text-white, .color-white, [style*="color:#fff"], [style*="color: #fff"]),
#footer :is(.text-white, .color-white, [style*="color:#fff"], [style*="color: #fff"]),
.site-footer :is(.text-white, .color-white, [style*="color:#fff"], [style*="color: #fff"]),
.btn,
button,
input[type="button"],
input[type="submit"],
.ui-btn-active,
.pageHeaders,
#tblHeader,
tr.heading,
tr.heading td,
tr.heading th {
  color: #ffffff !important;
}

.body .text-white,
.body .color-white,
main .text-white,
main .color-white,
#content .text-white,
#content .color-white,
.content .text-white,
.content .color-white,
.section .text-white,
.section .color-white,
.ui-content .text-white,
.ui-content .color-white,
[data-role="content"] .text-white,
[data-role="content"] .color-white {
  color: #000066 !important;
}

#header .text-white,
#header .color-white,
#footer .text-white,
#footer .color-white,
.site-footer .text-white,
.site-footer .color-white,
.btn,
button,
input[type="button"],
input[type="submit"],
.ui-btn-active,
.pageHeaders,
#tblHeader,
tr.heading,
tr.heading td,
tr.heading th {
  color: #ffffff !important;
}

#tblGenerateOTP .ui-input-btn,
#tblGenerateOTP .ui-input-btn:hover,
#tblGenerateOTP .ui-input-btn:focus,
#tblGenerateOTP .ui-input-btn:active {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(0, 156, 217, 0.22) !important;
  transition: none !important;
}

#tblGenerateOTP .ui-input-btn input#generateOTPButton,
#tblGenerateOTP .ui-input-btn input#generateOTPButton:hover,
#tblGenerateOTP .ui-input-btn input#generateOTPButton:focus,
#tblGenerateOTP .ui-input-btn input#generateOTPButton:active {
  opacity: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  transition: none !important;
}

.page-hero .section-badge,
.page-hero .section-badge i {
  color: var(--gold-light) !important;
}

.page-hero .section-badge {
  background: rgba(29,114,210,0.15) !important;
  border-color: rgba(29,114,210,0.4) !important;
}

.page-hero h1 span {
  color: inherit !important;
}

.page-hero h1 {
  color: #000066 !important;
}

.page-hero .breadcrumb-gold .current,
.page-hero .breadcrumb-gold span:last-child {
  color: rgba(255,255,255,0.7) !important;
}

/* Final contact/footer icon contrast override */
.contact-card-icon,
.contact-card-icon i,
.contact-card .contact-card-icon,
.contact-card .contact-card-icon i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.site-footer .footer-contact-item i,
footer .footer-contact-item i,
.footer-contact-item i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Final clock and scroll-top color consistency */
.top-bar .clock-item span,
.top-bar .clock-item span[id^="clock_"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#scrollTop {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
}

#scrollTop i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#scrollTop:hover {
  background: #0088BF !important;
  background-color: #0088BF !important;
  border-color: #0088BF !important;
  color: #ffffff !important;
}

/* Final generated scroll-to-top button for theme.js pages */
#scrollTop,
html .scroll-to-top,
.scroll-to-top {
  background: #009CD9 !important;
  background-color: #009CD9 !important;
  border-color: #009CD9 !important;
  color: #ffffff !important;
  position: fixed !important;
  bottom: 96px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

#scrollTop i,
html .scroll-to-top i,
.scroll-to-top i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: block !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
}

#scrollTop:hover,
html .scroll-to-top:hover,
.scroll-to-top:hover {
  background: #0088BF !important;
  background-color: #0088BF !important;
  border-color: #0088BF !important;
  color: #ffffff !important;
}

/* Final top-bar clock edge alignment across all pages */
.top-bar > .container,
.top-bar .container {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 24px !important;
}

.top-bar .clock-item {
  flex: 0 0 146px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

.top-bar .clock-item:last-child {
  margin-right: 0 !important;
}

/* Final modal close button design */
.modal .btn-close,
.modal-gold .modal-header .btn-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  border: 1px solid rgba(0, 0, 102, 0.12) !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000066'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293A1 1 0 0 1 .293 14.293L6.586 8 .293 1.707A1 1 0 0 1 .293.293z'/%3e%3c/svg%3e") !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 8px 20px rgba(0, 0, 102, 0.18) !important;
  opacity: 1 !important;
  filter: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.modal .btn-close:hover,
.modal-gold .modal-header .btn-close:hover {
  background-color: #e3f4fb !important;
  box-shadow: 0 10px 24px rgba(0, 156, 217, 0.24) !important;
  transform: translateY(-1px) !important;
  opacity: 1 !important;
}

.modal .btn-close:focus,
.modal-gold .modal-header .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(0, 156, 217, 0.28), 0 8px 20px rgba(0, 0, 102, 0.18) !important;
  outline: none !important;
}
