/* Parent portal palette. Keep video icon fonts and dark surfaces independent. */
:root {
  --primary-color: #0369a1;
  --primary-light: #e0f2fe;
  --primary-hover: #075985;
  --text-muted: #475569;
}
.school-name-title { color: #0369a1; }
.text-secondary, .alert-light { color: #475569 !important; }
.text-warning { color: #92400e !important; }
.text-success { color: #166534 !important; }
.btn-link { color: #1d4ed8; }
.btn-link:hover, .btn-link:focus { color: #1e40af; }
.btn-secondary { color: #fff; background: #475569; border: 1px solid #475569; }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active { color: #fff; background: #334155; border-color: #334155; }
.btn-light, .btn-white { color: #334155; background: #f8fafc; border-color: #64748b; }
.btn-light:hover, .btn-white:hover { color: #0f172a; background: #e2e8f0; }
.btn-success, .btn-outline-success { color: #fff; background: #166534; border: 1px solid #166534; }
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
  color: #fff; background: #14532d; border-color: #14532d;
}
.btn-success.text-dark, .btn-success.text-white { color: #fff !important; }
.badge-primary { color: #fff; background-color: #1d4ed8; }
.badge-success { color: #fff; background-color: #166534; }
.badge-info { color: #fff; background-color: #155e75; }
.badge-warning { color: #78350f; background-color: #fef3c7; }
.app-bottom-nav .nav-badge { color: #fff; background: #b91c1c; }
.segmented-filter-bar .segmented-filter-btn,
.checkout-segmented-bar .checkout-segmented-btn { color: #475569; }
.segmented-filter-bar .segmented-filter-btn.active,
.checkout-segmented-bar .checkout-segmented-btn.active,
.grid-mode-selector .btn.active { color: #075985; background: #fff; }
.bank-item-sub { color: #475569; }
.bank-item .badge, .bank-item-card .badge,
.bank-pay-card .badge { font-size: 11px !important; }
.noti-item-card.read { opacity: 1; background: #f1f5f9; }
.toggle-switch-btn { background: #64748b; border: 1px solid #475569; }
.toggle-switch-btn.active { background: #0369a1; border-color: #075985; }
.status-dot.online { background-color: #047857; }
.status-dot.connecting { background-color: #92400e; animation: none; }
.status-dot.offline { background-color: #b91c1c; }
.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus,
.user-dropdown-menu .dropdown-item:active,
.user-dropdown-menu .dropdown-item.active {
  color: #0f172a !important; background: #e2e8f0;
}
/* Bright foregrounds are intentional inside these dark cards. */
.modern-wallet-card .text-white-50,
.bank-pay-card .text-white-50,
.modal .text-white .text-white-50 { color: #e2e8f0 !important; }
.modern-wallet-card .text-warning { color: #fcd34d !important; }
.modern-wallet-card .text-success { color: #86efac !important; }
.modern-wallet-card .badge-light.text-warning { color: #78350f !important; background: #fef3c7; }
.wallet-quick-btn:hover, .wallet-quick-btn:focus { color: #0f172a; background: #fbbf24; }
.btn-bank-cta { color: #fff !important; background: #1d4ed8; }
.btn-bank-cta:hover, .btn-bank-cta:focus { background: #1e40af; }
.close, .alert-dismissible .close { opacity: 1; }
.close { color: #334155; text-shadow: none; }
.alert-dismissible .close { color: inherit; }
.form-control, input, select, textarea { border-color: #64748b !important; }
.pin-digit-box:not(.active):not(.filled), .input-group-text { border-color: #64748b !important; }
.pin-wrapper:focus-within { outline: 3px solid #1d4ed8; outline-offset: 6px; border-radius: 14px; }
/* Focus outlines must survive Bootstrap focus resets and decorative shadows. */
button:focus-visible, a:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #1d4ed8 !important; outline-offset: 3px;
}
.modern-wallet-card button:focus-visible, .bank-pay-card .btn:focus-visible {
  outline-color: #fcd34d !important;
}
.btn:disabled, .btn.disabled { opacity: .65; cursor: not-allowed; }
