/* Modo Noturno - Acessibilidade */
[data-theme="dark"] {
    --dark-mode-body-bg: #121212;
    --dark-mode-card-bg: #1E1E1E;
    --dark-mode-section-bg: #252525;
    --dark-mode-header-bg: #1A231B;
    --dark-mode-footer-bg: #0F0F1A;
    --dark-mode-input-bg: #2D2D2D;
    --dark-mode-text-primary: #E4E4E4;
    --dark-mode-text-secondary: #B0B0B0;
    --dark-mode-text-muted: #888888;
    --dark-mode-heading: #FFFFFF;
    --dark-mode-link: #64B5F6;
    --dark-mode-link-hover: #90CAF9;
    --dark-mode-border: #3D3D3D;
    --dark-mode-border-light: #4A4A4A;
    --dark-mode-primary: #5C6BC0;
    --dark-mode-primary-hover: #7986CB;
    --dark-mode-accent: #80CBC4;
    --dark-mode-nav-bg: #000000;
    --dark-mode-nav-link: #FFFFFF;
    --dark-mode-nav-hover: #64B5F6;
    --dark-mode-success: #4CAF50;
    --dark-mode-warning: #FFB74D;
    --dark-mode-danger: #EF5350;
    --dark-mode-info: #4FC3F7;
    --dark-mode-scrollbar-track: #1E1E1E;
    --dark-mode-scrollbar-thumb: #555555;
    --dark-mode-waves-color: #2D4833;

    /* Sobrescrita de variáveis principais */
    --body-bg: var(--dark-mode-body-bg);
    --card-bg: var(--dark-mode-card-bg);
    --section-bg: var(--dark-mode-section-bg);
    --text-color: var(--dark-mode-text-primary);
    --text-secondary: var(--dark-mode-text-secondary);
    --text-muted: var(--dark-mode-text-muted);
    --heading-color: var(--dark-mode-heading);
    --link-color: var(--dark-mode-link);
    --border-color: var(--dark-mode-border);
}

[data-theme="dark"] body {
    background-color: var(--dark-mode-body-bg) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] header,
[data-theme="dark"] .topo,
[data-theme="dark"] .topo-nav {
    background-color: var(--dark-mode-header-bg) !important;
}

[data-theme="dark"] .defaultBar {
    background-color: var(--dark-mode-nav-bg) !important;
}

/* Logo - alternância entre modo claro e escuro */
.topo-logo-dark {
    display: none;
}

.topo-logo-light {
    display: block;
}

[data-theme="dark"] .topo-logo-dark {
    display: block;
}

[data-theme="dark"] .topo-logo-light {
    display: none;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .modal-content {
    background-color: var(--dark-mode-card-bg) !important;
    color: var(--dark-mode-text-primary) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] main section,
[data-theme="dark"] .section-home {
    background-color: var(--dark-mode-section-bg) !important;
}

[data-theme="dark"] footer section,
[data-theme="dark"] .footer-pmar section {
    background-color: var(--dark-mode-footer-bg) !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .card-title {
    color: var(--dark-mode-heading) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] label {
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--dark-mode-text-muted) !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link) {
    color: var(--dark-mode-link) !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):hover {
    color: var(--dark-mode-link-hover) !important;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--dark-mode-input-bg) !important;
    color: var(--dark-mode-text-primary) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--dark-mode-text-muted) !important;
}

[data-theme="dark"] table,
[data-theme="dark"] .table {
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .table thead th {
    background-color: var(--dark-mode-nav-bg) !important;
    color: var(--dark-mode-heading) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--dark-mode-section-bg) !important;
}

[data-theme="dark"] footer,
[data-theme="dark"] .footer-pmar {
    background-color: var(--dark-mode-footer-bg) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(76, 175, 80, 0.15) !important;
    border-color: var(--dark-mode-success) !important;
    color: var(--dark-mode-success) !important;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 183, 77, 0.15) !important;
    border-color: var(--dark-mode-warning) !important;
    color: var(--dark-mode-warning) !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 83, 80, 0.15) !important;
    border-color: var(--dark-mode-danger) !important;
    color: var(--dark-mode-danger) !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(79, 195, 247, 0.15) !important;
    border-color: var(--dark-mode-info) !important;
    color: var(--dark-mode-info) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--dark-mode-section-bg) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background-color: var(--dark-mode-scrollbar-track) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: var(--dark-mode-scrollbar-thumb) !important;
}

[data-theme="dark"] .breadcrumb {
    background-color: var(--dark-mode-section-bg) !important;
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--dark-mode-link) !important;
}

[data-theme="dark"] .pagination .page-link {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--dark-mode-primary) !important;
    border-color: var(--dark-mode-primary) !important;
}

[data-theme="dark"] .badge.bg-light {
    background-color: var(--dark-mode-section-bg) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .list-group-item {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .offcanvas {
    background-color: var(--dark-mode-card-bg) !important;
}

[data-theme="dark"] .accordion-item {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--dark-mode-section-bg) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--dark-mode-nav-bg) !important;
    color: var(--dark-mode-heading) !important;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--dark-mode-text-secondary) !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) var(--dark-mode-border) var(--dark-mode-card-bg) !important;
    color: var(--dark-mode-text-primary) !important;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

[data-theme="dark"] .home-section,
[data-theme="dark"] .news-section {
    background-color: var(--dark-mode-body-bg) !important;
}

[data-theme="dark"] .news-card,
[data-theme="dark"] .service-card {
    background-color: var(--dark-mode-card-bg) !important;
    border-color: var(--dark-mode-border) !important;
}

[data-theme="dark"] .bg-waves {
    background-image: url("data:image/svg+xml,%3Csvg width='1439' height='259' viewBox='0 0 1439 259' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 15.3111C44.5464 11.9992 88.0902 8.68535 131.637 8.16329C175.183 7.64124 218.727 9.90722 262.273 8.16329C305.817 6.41937 349.363 0.663668 392.91 1.01545C436.454 1.36723 480 7.82836 523.546 11.7372C567.09 15.6461 610.637 17.0045 654.183 18.8851C697.727 20.7656 741.273 23.1663 784.817 18.8851C828.363 14.6038 871.91 3.63882 915.454 4.58937C959 5.53992 1002.55 18.4023 1046.09 18.8851C1089.64 19.3678 1133.18 7.46909 1176.73 4.58937C1220.27 1.70965 1263.82 7.85081 1307.36 11.7372C1350.91 15.6236 1394.45 17.2534 1438 18.8851' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 33.181C44.5464 38.4427 88.0902 43.7063 131.637 43.9028C175.183 44.0992 218.727 39.2323 262.273 36.7549C305.817 34.2775 349.363 34.1933 392.91 33.181C436.454 32.1687 480 30.232 523.546 33.181C567.09 36.1299 610.637 43.9682 654.183 47.4767C697.727 50.9851 741.273 50.1655 784.817 47.4767C828.363 44.7878 871.91 40.2297 915.454 40.3288C959 40.428 1002.55 45.1826 1046.09 43.9028C1089.64 42.6229 1133.18 35.3104 1176.73 33.181C1220.27 31.0516 1263.82 34.1035 1307.36 36.7549C1350.91 39.4064 1394.45 41.6536 1438 43.9028' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 61.7713C44.5464 60.8788 88.0902 59.9863 131.637 58.1974C175.183 56.4086 218.727 53.7216 262.273 54.6235C305.817 55.5254 349.363 60.0181 392.91 61.7713C436.454 63.5246 480 62.5404 523.546 61.7713C567.09 61.0023 610.637 60.4503 654.183 61.7713C697.727 63.0924 741.273 66.2865 784.817 68.9192C828.363 71.5519 871.91 73.6233 915.454 72.4931C959 71.3629 1002.55 67.0312 1046.09 65.3453C1089.64 63.6594 1133.18 64.6155 1176.73 65.3453C1220.27 66.075 1263.82 66.5746 1307.36 65.3453C1350.91 64.1159 1394.45 61.1557 1438 58.1974' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 90.3629C44.5464 90.1833 88.0902 90.0055 131.637 90.3629C175.183 90.7203 218.727 91.6166 262.273 90.3629C305.817 89.1092 349.363 85.7056 392.91 83.2151C436.454 80.7245 480 79.149 523.546 79.6411C567.09 80.1333 610.637 82.693 654.183 83.2151C697.727 83.7371 741.273 82.2196 784.817 83.2151C828.364 84.2105 871.91 87.7171 915.454 86.789C959 85.8609 1002.55 80.4981 1046.09 79.6411C1089.64 78.7841 1133.18 82.4348 1176.73 83.2151C1220.27 83.9953 1263.82 81.9071 1307.36 83.2151C1350.91 84.523 1394.45 89.2309 1438 93.9368' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 115.381C44.5464 118.514 88.0902 121.644 131.637 118.955C175.183 116.266 218.727 107.756 262.273 108.233C305.817 108.711 349.363 118.171 392.91 122.529C436.454 126.887 480 126.139 523.546 122.529C567.09 118.92 610.637 112.451 654.183 111.807C697.727 111.164 741.273 116.347 784.817 115.381C828.363 114.416 871.91 107.304 915.454 108.233C959 109.163 1002.55 118.136 1046.09 122.529C1089.64 126.923 1133.18 126.736 1176.73 122.529C1220.27 118.323 1263.82 110.095 1307.36 108.233C1350.91 106.372 1394.45 110.877 1438 115.381' stroke='%232D4833' stroke-opacity='0.6'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .bg-waves-blue {
    background-color: var(--dark-mode-section-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='1439' height='259' viewBox='0 0 1439 259' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 15.3111C44.5464 11.9992 88.0902 8.68535 131.637 8.16329C175.183 7.64124 218.727 9.90722 262.273 8.16329C305.817 6.41937 349.363 0.663668 392.91 1.01545C436.454 1.36723 480 7.82836 523.546 11.7372C567.09 15.6461 610.637 17.0045 654.183 18.8851C697.727 20.7656 741.273 23.1663 784.817 18.8851C828.363 14.6038 871.91 3.63882 915.454 4.58937C959 5.53992 1002.55 18.4023 1046.09 18.8851C1089.64 19.3678 1133.18 7.46909 1176.73 4.58937C1220.27 1.70965 1263.82 7.85081 1307.36 11.7372C1350.91 15.6236 1394.45 17.2534 1438 18.8851' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 33.181C44.5464 38.4427 88.0902 43.7063 131.637 43.9028C175.183 44.0992 218.727 39.2323 262.273 36.7549C305.817 34.2775 349.363 34.1933 392.91 33.181C436.454 32.1687 480 30.232 523.546 33.181C567.09 36.1299 610.637 43.9682 654.183 47.4767C697.727 50.9851 741.273 50.1655 784.817 47.4767C828.363 44.7878 871.91 40.2297 915.454 40.3288C959 40.428 1002.55 45.1826 1046.09 43.9028C1089.64 42.6229 1133.18 35.3104 1176.73 33.181C1220.27 31.0516 1263.82 34.1035 1307.36 36.7549C1350.91 39.4064 1394.45 41.6536 1438 43.9028' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 61.7713C44.5464 60.8788 88.0902 59.9863 131.637 58.1974C175.183 56.4086 218.727 53.7216 262.273 54.6235C305.817 55.5254 349.363 60.0181 392.91 61.7713C436.454 63.5246 480 62.5404 523.546 61.7713C567.09 61.0023 610.637 60.4503 654.183 61.7713C697.727 63.0924 741.273 66.2865 784.817 68.9192C828.363 71.5519 871.91 73.6233 915.454 72.4931C959 71.3629 1002.55 67.0312 1046.09 65.3453C1089.64 63.6594 1133.18 64.6155 1176.73 65.3453C1220.27 66.075 1263.82 66.5746 1307.36 65.3453C1350.91 64.1159 1394.45 61.1557 1438 58.1974' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 90.3629C44.5464 90.1833 88.0902 90.0055 131.637 90.3629C175.183 90.7203 218.727 91.6166 262.273 90.3629C305.817 89.1092 349.363 85.7056 392.91 83.2151C436.454 80.7245 480 79.149 523.546 79.6411C567.09 80.1333 610.637 82.693 654.183 83.2151C697.727 83.7371 741.273 82.2196 784.817 83.2151C828.364 84.2105 871.91 87.7171 915.454 86.789C959 85.8609 1002.55 80.4981 1046.09 79.6411C1089.64 78.7841 1133.18 82.4348 1176.73 83.2151C1220.27 83.9953 1263.82 81.9071 1307.36 83.2151C1350.91 84.523 1394.45 89.2309 1438 93.9368' stroke='%232D4833' stroke-opacity='0.6'/%3E%3Cpath d='M1 115.381C44.5464 118.514 88.0902 121.644 131.637 118.955C175.183 116.266 218.727 107.756 262.273 108.233C305.817 108.711 349.363 118.171 392.91 122.529C436.454 126.887 480 126.139 523.546 122.529C567.09 118.92 610.637 112.451 654.183 111.807C697.727 111.164 741.273 116.347 784.817 115.381C828.363 114.416 871.91 107.304 915.454 108.233C959 109.163 1002.55 118.136 1046.09 122.529C1089.64 126.923 1133.18 126.736 1176.73 122.529C1220.27 118.323 1263.82 110.095 1307.36 108.233C1350.91 106.372 1394.45 110.877 1438 115.381' stroke='%232D4833' stroke-opacity='0.6'/%3E%3C/svg%3E") !important;
}

