/* Tema de Alto Contraste para SeCI */
body.high-contrast {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

body.high-contrast * {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Links - ALTERADO PARA BRANCO */
body.high-contrast a,
body.high-contrast a:link,
body.high-contrast a:visited {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

body.high-contrast a:hover,
body.high-contrast a:focus {
    color: #FFFF00 !important;
    background-color: #000080 !important;
}

/* Botões */
body.high-contrast button,
body.high-contrast .br-button,
body.high-contrast input[type="button"],
body.high-contrast input[type="submit"],
body.high-contrast input[type="reset"] {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    font-weight: bold !important;
}
/*
body.high-contrast button:hover,
body.high-contrast .br-button:hover,
body.high-contrast button:focus,
body.high-contrast .br-button:focus {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
}*/

/* Inputs e campos de formulário */
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select,
body.high-contrast .form-control {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast input:focus,
body.high-contrast textarea:focus,
body.high-contrast select:focus,
body.high-contrast .form-control:focus {
    background-color: #000080 !important;
    color: #FFFF00 !important;
    border: 3px solid #FFFF00 !important;
    outline: 2px solid #FFFF00 !important;
}

body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder {
    color: #CCCCCC !important;
}

/* Labels */
body.high-contrast label {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* Header */
body.high-contrast .br-header,
body.high-contrast header {
    background-color: #000000 !important;
    border-bottom: 3px solid #FFFFFF !important;
}

/* Footer */
body.high-contrast .br-footer,
body.high-contrast footer {
    background-color: #000000 !important;
    border-top: 3px solid #FFFFFF !important;
}

/* Tabelas */
body.high-contrast table,
body.high-contrast .br-table,
body.high-contrast th,
body.high-contrast td {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast th {
    color: #FFFF00 !important;
    font-weight: bold !important;
}

body.high-contrast tr:hover,
body.high-contrast tr:focus {
    background-color: #000080 !important;
}

/* Accordion */
body.high-contrast .br-accordion,
body.high-contrast [id^="accordion-default"] {
    background-color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast [id^="accordion-default"] > .item > .header {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FFFFFF !important;
}

/* Modais */
body.high-contrast .br-modal,
body.high-contrast .modal-content {
    background-color: #000000 !important;
    border: 3px solid #FFFFFF !important;
}

/* Mensagens e alertas */
body.high-contrast .br-message,
body.high-contrast .alert {
    background-color: #000000 !important;
    border: 3px solid #FFFF00 !important;
}

/* Breadcrumb */
body.high-contrast .br-breadcrumb {
    background-color: #000000 !important;
}

body.high-contrast .br-breadcrumb .crumb {
    color: #FFFFFF !important;
}

/* Menu */
body.high-contrast .br-menu {
    background-color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .menu-item {
    color: #FFFFFF !important;
}

body.high-contrast .menu-item:hover,
body.high-contrast .menu-item:focus,
body.high-contrast .item-menu-ativo {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

/* Cards */
body.high-contrast .cardlogin,
body.high-contrast .boxlogin,
body.high-contrast .br-card {
    background-color: #000000 !important;
    border: 3px solid #FFFFFF !important;
}

/* Boxes especiais da página de login */
body.high-contrast .boxlogosesilogin {
    background-color: #FFFFFF !important;
}

body.high-contrast .conteudo-login,
body.high-contrast .conteudo-login-cinza {
    background-color: #000000 !important;
}

body.high-contrast .bgbannerbuscadorlogin {
    background-color: #000080 !important;
}

/* Ícones */
body.high-contrast i,
body.high-contrast .fa,
body.high-contrast .fas,
body.high-contrast .far {
    color: #FFFFFF !important;
}

body.high-contrast button i,
body.high-contrast .br-button i {
    color: #FFFFFF !important;
}

body.high-contrast button:hover i,
body.high-contrast .br-button:hover i {
    color: #000000 !important;
}

/* Campos desabilitados */
body.high-contrast input:disabled,
body.high-contrast button:disabled,
body.high-contrast select:disabled,
body.high-contrast textarea:disabled,
body.high-contrast button[aria-disabled="true"] {
    background-color: #333333 !important;
    color: #999999 !important;
    border-color: #666666 !important;
    opacity: 1 !important;
}

/* Checkbox e Radio */
body.high-contrast .br-checkbox,
body.high-contrast .br-radio {
    border: 2px solid #FFFFFF !important;
}

body.high-contrast input[type="checkbox"],
body.high-contrast input[type="radio"] {
    accent-color: #FFFF00 !important;
    border: 2px solid #FFFFFF !important;
}

/* Separadores */
body.high-contrast .br-divider,
body.high-contrast hr,
body.high-contrast .separador {
    border-color: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

/* Upload */
body.high-contrast .br-upload {
    background-color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

/* Selectize/Select */
body.high-contrast .selectize-input,
body.high-contrast .selectize-dropdown {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .selectize-dropdown .option {
    color: #FFFFFF !important;
}

body.high-contrast .selectize-dropdown .option.active {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

/* ========================================
   IMAGENS - TRATAMENTO ESPECÍFICO
   ======================================== */

/* Por padrão, remove filtro de todas as imagens */
body.high-contrast img {
    filter: none !important;
    opacity: 1 !important;
}

/* Logo gov.br NO HEADER - Deve ser invertido para aparecer em fundo preto */
body.high-contrast .header-logo img[alt*="gov.br"],
body.high-contrast .header-logo img[alt*="logo gov.br"],
body.high-contrast .header-logo a img {
    filter: brightness(0) invert(1) !important;
    background-color: transparent !important;
}

/* Logo SeCI - Mantém normal com fundo branco */
body.high-contrast .boxlogosesilogin img,
body.high-contrast img[alt*="logo seci"],
body.high-contrast .img-logo {
    filter: none !important;
    background-color: #FFFFFF !important;
    padding: 8px !important;
}

/* Logo no FOOTER - Deve ser invertido */
/*body.high-contrast .br-footer .logo img,
body.high-contrast footer .logo img,
body.high-contrast footer img {
    filter: brightness(0) invert(1) !important;
    background-color: transparent !important;
}*/

/* SVG do LAI (Logo Acesso à Informação) no footer - Inverte cores */
/*    body.high-contrast .logo-acesso-footer svg { 
        filter: brightness(0) invert(1) !important;
    }

body.high-contrast .logo-acesso-footer svg * {
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

body.high-contrast .logo-acesso-footer svg circle {
    fill: #000000 !important;
}

body.high-contrast .logo-acesso-footer svg path {
    stroke: #FFFFFF !important;
}

body.high-contrast .logo-acesso-footer svg text {
    fill: #FFFFFF !important;
}*/

/* Garantir que imagens em links do footer sejam invertidas */
body.high-contrast footer a img {
    filter: brightness(0) invert(1) !important;
}

/* Spinner/Loading */
body.high-contrast .fa-spin {
    color: #FFFF00 !important;
}

/* Tags */
body.high-contrast .br-tag {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FFFF00 !important;
}

/* Step/Wizard */
body.high-contrast .br-step {
    background-color: #000000 !important;
}

body.high-contrast .br-step .step-progress {
    background-color: #FFFF00 !important;
}

/* Tooltip */
body.high-contrast .tooltip-inner {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

/* Pagination */
body.high-contrast .br-pagination .pagination-link {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .br-pagination .pagination-link:hover,
body.high-contrast .br-pagination .pagination-link.active {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

/* Feedback de erro */
body.high-contrast .feedback.danger,
body.high-contrast .obrigatorio,
body.high-contrast .mensagem_erro_login {
    color: #FF0000 !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 0px #FFFFFF !important;
}

/* Botão de contraste ativo */
/*body.high-contrast #toggleContraste {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 3px solid #FFFFFF !important;
}

body.high-contrast #toggleContraste i {
    color: #000000 !important;
}*/

/* Textos e spans específicos da página de login */
body.high-contrast .titulologin,
body.high-contrast .corpologin,
body.high-contrast .textoboxlogin,
body.high-contrast .titulosecaocards,
body.high-contrast .textocardlogin,
body.high-contrast .titulobannerbuscadorlogin {
    color: #FFFFFF !important;
}

body.high-contrast .iconecardlogin {
    color: #FFFFFF !important;
}

/* Botões de usuário/admin na página de login */
body.high-contrast .btnUsuLogin {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

body.high-contrast .btnUsuLogin:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}
