/* === DARK THEME - Partners === */

/* Fundo geral - multiplos seletores para garantir cobertura */
html,
body,
#wrapper,
.content-wrapper,
.content,
.page-layout,
.page-layout.simple,
.page-layout.simple.full-width,
.page-content,
#mainContent {
    background-color: #1a1f2e !important;
    color: #e0e4f0 !important;
}

/* Classes Fuse HTML usadas nos forms de Links, Saques, Transacoes */
.example,
.source-preview-wrapper,
.preview,
.preview-elements,
.divSmall {
    background-color: #1a1f2e !important;
    border: none !important;
    box-shadow: none !important;
}

/* Painel do formulario de Pessoas */
.panel-body,
.panel-body-form,
#newLayout,
.panel,
.card-body {
    background-color: #1a1f2e !important;
    border: none !important;
    box-shadow: none !important;
}

/* Cards do dashboard - mantém borda, escurece fundo */
.card {
    background-color: #1e2540 !important;
    border-color: #3a4666 !important;
    box-shadow: none !important;
}

/* Footer "No Mês" - era bg-light (branco) */
.bg-light,
.widget-footer {
    background-color: #252d45 !important;
    color: #e0e4f0 !important;
}

.text-muted {
    color: #8a93ad !important;
}

/* Sidebar - roxo apenas no hover */
#sidenav .nav-link:hover,
#sidenav .nav-link.active {
    background-color: rgba(147, 112, 219, 0.18) !important;
    color: #ffffff !important;
}

/* Campos de formulario */
.form-control {
    background-color: transparent !important;
    color: #e0e4f0 !important;
    border-top: none !important;
    border-left: 1px solid #7c3aed !important;
    border-right: 1px solid #7c3aed !important;
    border-bottom: 2px solid #7c3aed !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
}

.form-control:focus {
    background-color: transparent !important;
    color: #ffffff !important;
    border-left-color: #a855f7 !important;
    border-right-color: #a855f7 !important;
    border-bottom-color: #a855f7 !important;
    box-shadow: 0 1px 0 0 rgba(168, 85, 247, 0.35) !important;
    outline: none !important;
}

/* Labels */
label {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Label flutuante - posicao so quando campo esta vazio/desfocado */
.form-group input:placeholder-shown ~ label,
.form-group select ~ label {
    top: 8px !important;
    left: 12px !important;
}

/* Sub-titulo / breadcrumb */
.containerN .sub-title {
    color: #b0b8d1 !important;
}

/* Select - altura igual aos inputs */
select.form-control {
    height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 38px !important;
}

/* Select dropdown options */
select.form-control option {
    background-color: #252d45;
    color: #e0e4f0;
}

/* Select2 */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border-top: none !important;
    border-left: 1px solid #7c3aed !important;
    border-right: 1px solid #7c3aed !important;
    border-bottom: 2px solid #7c3aed !important;
    border-radius: 6px !important;
    color: #e0e4f0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e4f0 !important;
}
.select2-dropdown {
    background-color: #252d45 !important;
    border-color: #3a4666 !important;
}
.select2-container--default .select2-results__option {
    color: #e0e4f0 !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3a4666 !important;
}

/* Tabs (Taxas / Taxas Saques / Tokens API) */
.nav-tabs {
    border-bottom-color: #3a4666 !important;
}
.nav-tabs .nav-link {
    color: #b0b8d1 !important;
}
.nav-tabs .nav-link:hover {
    border-color: transparent transparent #5bb2ff transparent !important;
    color: #e0e4f0 !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: transparent !important;
    border-color: transparent transparent #5bb2ff transparent !important;
    color: #ffffff !important;
}

/* Cancela overrides de input/border dentro dos componentes DevExtreme */
.dx-widget input[type="text"],
.dx-widget input[type="number"],
.dx-widget input[type="search"],
.dx-widget input[type="email"],
.dx-widget input[type="password"],
.dx-widget textarea,
.dx-widget .form-control,
.dx-texteditor-input,
.dx-searchbox .dx-texteditor-input,
.dx-datagrid-search-panel .dx-texteditor-input {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    padding: 7px 9px !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Grid title */
.gridTitle {
    background-color: #252d45 !important;
    color: #e0e4f0 !important;
}

/* Options container */
.options {
    background-color: rgba(37, 45, 69, 0.6) !important;
}

/* Tabelas simples */
table.tableFin,
table.tableFin td,
table.tableFin th {
    border-color: #3a4666 !important;
    color: #e0e4f0 !important;
}

/* Modais */
.modal-content {
    background-color: #252d45 !important;
    color: #e0e4f0 !important;
}
.modal-header {
    border-bottom-color: #3a4666 !important;
}
.modal-footer {
    border-top-color: #3a4666 !important;
}

/* Toolbar/topo */
.toolbar,
#toolbar,
#toolbar.bg-white,
.fuse-toolbar {
    background-color: #141828 !important;
}

/* Icone menu mobile */
.toggle-aside-button .icon,
.toggle-aside-button i {
    color: #7c3aed !important;
}
.toggle-aside-button:hover .icon,
.toggle-aside-button:hover i {
    color: #a855f7 !important;
}

/* Inputs de texto */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    background-color: transparent !important;
    color: #e0e4f0 !important;
    border-top: none !important;
    border-left: 1px solid #7c3aed !important;
    border-right: 1px solid #7c3aed !important;
    border-bottom: 2px solid #7c3aed !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
    background-color: transparent !important;
    border-left-color: #a855f7 !important;
    border-right-color: #a855f7 !important;
    border-bottom-color: #a855f7 !important;
    box-shadow: 0 1px 0 0 rgba(168, 85, 247, 0.35) !important;
    outline: none !important;
}

/* Readonly/disabled */
input[readonly],
input[disabled],
select[disabled] {
    background-color: #1e2540 !important;
    color: #7a84a0 !important;
}

/* Login - card central */
.form-wrapper {
    background-color: #080d11 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

#login .title {
    color: #b0b8d1 !important;
}

/* Botao secundario */
.btn-secondary {
    background-color: #2d3656 !important;
    border-color: #3a4666 !important;
    color: #e0e4f0 !important;
}
/* Cabecalho dos forms de Links, Saques, Transacoes - sem destaque */
.description,
.bg-secondary-600,
.description.bg-secondary-600 {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}
.description-text h5 {
    color: #b0b8d1 !important;
    font-weight: 500;
    padding: 4px 0;
}