/* =================================
   VR PLANOS - THEME OVERRIDE
   Substitui as cores verdes por azul/amarelo VR Planos
   ================================= */

/* Substitui todas as cores primárias verdes por azul VR Planos */

.text-primary {
  color: #0052dc !important;
}

.text-body[href]:hover {
  color: #003aa8 !important;
}

.bg-primary {
  background-color: #0052dc !important;
}

a.bg-primary:hover, a.bg-primary:focus {
  background-color: #003aa8 !important;
}

.text-dark {
  color: #0052dc !important;
}

.border-primary {
  border-color: #0052dc !important;
}

.btn-primary {
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

.btn-primary:hover {
  color: #fff !important;
  background-color: #003aa8 !important;
  border-color: #003aa8 !important;
}

.btn-check:focus + .btn-primary, 
.btn-primary:focus, 
.btn-primary.focus {
  color: #fff;
  background-color: #003aa8;
  border-color: #003aa8;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.5);
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #003aa8;
  border-color: #003aa8;
}

.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.5);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

.btn-outline-primary {
  color: #0052dc;
  border-color: #0052dc;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.5);
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

.btn-check:checked + .btn-outline-primary:focus,
.btn-check:active + .btn-outline-primary:focus,
.btn-outline-primary:active:focus,
.btn-outline-primary.active:focus,
.btn-outline-primary.dropdown-toggle.show:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.5);
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: #0052dc;
  background-color: transparent;
}

/* Gradientes atualizados */
.bg-gradient-primary {
  background-image: linear-gradient(45deg, #0052dc, #feae01) !important;
}

/* Links */
.link-primary {
  color: #0052dc;
}

.link-primary:hover,
.link-primary:focus {
  color: #003aa8;
}

/* Alerts */
.alert-primary {
  color: #001d3d;
  background-color: #cce4ff;
  border-color: #b3d9ff;
}

.alert-primary .alert-link {
  color: #001732;
}

/* Progress bars */
.progress-bar {
  background-color: #0052dc;
}

/* Nav pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #0052dc;
}

/* Badge */
.badge.bg-primary {
  color: #fff !important;
  background-color: #0052dc !important;
}

/* Form controls focus */
.form-control:focus {
  border-color: #80b9ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.25);
}

.form-select:focus {
  border-color: #80b9ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  color: #003aa8;
  background-color: #e6f3ff;
  box-shadow: inset 0 -1px 0 rgba(0, 82, 220, 0.125);
}

.accordion-button:focus {
  z-index: 3;
  border-color: #80b9ff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.25);
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #0052dc;
}

/* List group */
.list-group-item.active {
  z-index: 2;
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

/* Toast */
.toast-header {
  background-color: rgba(0, 82, 220, 0.85);
  border-bottom: 1px solid rgba(0, 82, 220, 0.2);
}

/* Pagination */
.page-link {
  color: #0052dc;
}

.page-link:hover {
  z-index: 2;
  color: #003aa8;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  color: #003aa8;
  background-color: #e9ecef;
  border-color: #dee2e6;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 220, 0.25);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #0052dc;
  border-color: #0052dc;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Tabela */
.table-primary {
  --bs-table-bg: #e6f3ff;
  --bs-table-striped-bg: #d9edff;
  --bs-table-striped-color: #000;
  --bs-table-active-bg: #cce4ff;
  --bs-table-active-color: #000;
  --bs-table-hover-bg: #d9edff;
  --bs-table-hover-color: #000;
  color: #000;
  border-color: #b3d9ff;
}

/* Substituições específicas para cores hardcoded */
[style*="#00741d"] {
  color: #0052dc !important;
}

[style*="background-color: #00741d"] {
  background-color: #0052dc !important;
}

[style*="border-color: #00741d"] {
  border-color: #0052dc !important;
}

/* Cores secundárias - usar amarelo VR Planos onde apropriado */
.text-warning {
  color: #feae01 !important;
}

.bg-warning {
  background-color: #feae01 !important;
  color: #000 !important;
}

.btn-warning {
  color: #000;
  background-color: #feae01;
  border-color: #feae01;
}

.btn-warning:hover {
  color: #000 !important;
  background-color: #e49b00 !important;
  border-color: #e49b00 !important;
}

.alert-warning {
  color: #664d00;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.badge.bg-warning {
  color: #000 !important;
  background-color: #feae01 !important;
}

/* Títulos dentro de elementos com background primário (azul) */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.btn-primary h1,
.btn-primary h2,
.btn-primary h3,
.btn-primary h4,
.btn-primary h5,
.btn-primary h6,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
  color: #feae01 !important;
}

/* Títulos em seções com fundo azul */
.bg-primary .title,
.bg-primary .heading,
.bg-primary .section-title,
.navbar-brand,
.nav-link.active,
.dropdown-item.active {
  color: #feae01 !important;
}

/* Subtítulos e textos secundários em backgrounds primários */
.bg-primary .subtitle,
.bg-primary .description,
.bg-primary .lead,
.bg-primary .text-muted {
  color: rgba(254, 174, 1, 0.8) !important;
}

/* Links dentro de elementos primários */
.bg-primary a:not(.btn),
.btn-primary a:not(.btn),
.card-header a:not(.btn) {
  color: #feae01 !important;
}

.bg-primary a:not(.btn):hover,
.btn-primary a:not(.btn):hover,
.card-header a:not(.btn):hover {
  color: #ffffff !important;
}

/* Override para elementos específicos que devem manter verde (sucesso) */
.text-success {
  color: #28a745 !important;
}

.bg-success {
  background-color: #28a745 !important;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.badge.bg-success {
  color: #fff !important;
  background-color: #28a745 !important;
}

/* Estilos específicos para páginas VR Planos */
.vrplanos-page-header h1,
.vrplanos-page-header h2,
.vrplanos-section-primary h1,
.vrplanos-section-primary h2,
.vrplanos-section-primary h3,
.vrplanos-hero h1,
.vrplanos-hero h2,
.vrplanos-cta h1,
.vrplanos-cta h2,
.vrplanos-cta h3 {
  color: #feae01 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Headers de cards e seções */
.card.bg-primary .card-title,
.card.bg-primary .card-header,
.section-primary .section-title,
.primary-background h1,
.primary-background h2,
.primary-background h3,
.primary-background h4,
.primary-background h5,
.primary-background h6 {
  color: #feae01 !important;
}

/* Elementos com gradiente primário */
[style*="background: linear-gradient"][style*="#0052dc"] h1,
[style*="background: linear-gradient"][style*="#0052dc"] h2,
[style*="background: linear-gradient"][style*="#0052dc"] h3,
[style*="background-image: linear-gradient"][style*="#0052dc"] h1,
[style*="background-image: linear-gradient"][style*="#0052dc"] h2,
[style*="background-image: linear-gradient"][style*="#0052dc"] h3 {
  color: #feae01 !important;
}

/* Navbar e navegação */
.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .nav-link,
.navbar-primary .navbar-brand,
.navbar-primary .nav-link {
  color: #feae01 !important;
}

/* Footer com background primário */
.footer.bg-primary h1,
.footer.bg-primary h2,
.footer.bg-primary h3,
.footer.bg-primary h4,
.footer.bg-primary h5,
.footer.bg-primary h6,
.bg-primary.footer h1,
.bg-primary.footer h2,
.bg-primary.footer h3,
.bg-primary.footer h4,
.bg-primary.footer h5,
.bg-primary.footer h6 {
  color: #feae01 !important;
}

/* Classes específicas do VR Planos identificadas no CSS */
.page-title {
  color: #feae01 !important;
}

.hero-title {
  color: #feae01 !important;
}

.hero-subtitle {
  color: rgba(254, 174, 1, 0.9) !important;
}

.section-title {
  color: #feae01 !important;
}

.section-subtitle {
  color: rgba(254, 174, 1, 0.8) !important;
}

/* Títulos dentro de seções hero */
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section h1,
.hero-section h2,
.hero-section h3 {
  color: #feae01 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Page headers com background primário */
.page-header .page-title,
.page-header .page-subtitle,
.page-header h1,
.page-header h2,
.page-header h3 {
  color: #feae01 !important;
}

/* Elementos com gradiente azul */
[style*="background:linear-gradient"][style*="#0052dc"] h1,
[style*="background:linear-gradient"][style*="#0052dc"] h2,
[style*="background:linear-gradient"][style*="#0052dc"] h3,
[style*="background:linear-gradient"][style*="#0052dc"] .title,
[style*="background: linear-gradient"][style*="#0052dc"] h1,
[style*="background: linear-gradient"][style*="#0052dc"] h2,
[style*="background: linear-gradient"][style*="#0052dc"] h3,
[style*="background: linear-gradient"][style*="#0052dc"] .title {
  color: #feae01 !important;
}

/* CTAs e call-to-actions */
.cta-section h1,
.cta-section h2,
.cta-section h3,
.call-to-action h1,
.call-to-action h2,
.call-to-action h3 {
  color: #feae01 !important;
}

/* Elementos com background via CSS custom properties */
[style*="background:var(--primary-color)"] h1,
[style*="background:var(--primary-color)"] h2,
[style*="background:var(--primary-color)"] h3,
[style*="background: var(--primary-color)"] h1,
[style*="background: var(--primary-color)"] h2,
[style*="background: var(--primary-color)"] h3 {
  color: #feae01 !important;
}
