/**
 * Custom Red & Black Theme
 * Sobrescreve as cores do Bootstrap para vermelho e preto
 */

:root {
    --bs-primary: #EB1616;
    --bs-primary-rgb: 235, 22, 22;
    --bs-secondary: #191C24;
    --bs-secondary-rgb: 25, 28, 36;
    --bs-success: #00B74A;
    --bs-success-rgb: 0, 183, 74;
    --bs-info: #39C0ED;
    --bs-info-rgb: 57, 192, 237;
    --bs-warning: #FFB800;
    --bs-warning-rgb: 255, 184, 0;
    --bs-danger: #F93154;
    --bs-danger-rgb: 249, 49, 84;
    --bs-light: #6C7293;
    --bs-light-rgb: 108, 114, 147;
    --bs-dark: #000000;
    --bs-dark-rgb: 0, 0, 0;
}

/* Cores primárias do Bootstrap */
.btn-primary,
.bg-primary,
.badge.bg-primary {
    background-color: #EB1616 !important;
    border-color: #EB1616 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #d01414 !important;
    border-color: #d01414 !important;
}

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

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

.btn-outline-primary {
    color: #EB1616 !important;
    border-color: #EB1616 !important;
}

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

/* Background escuro */
.bg-secondary {
    background-color: #191C24 !important;
}

.bg-dark {
    background-color: #000000 !important;
}

body {
    background-color: #000000 !important;
}

/* Cards e containers */
.card {
    background-color: #191C24 !important;
    border-color: #2C3E50 !important;
}

.card-header {
    background-color: #0d0f14 !important;
    border-color: #2C3E50 !important;
}

/* Tabelas */
.table-dark {
    background-color: #191C24 !important;
    color: #fff !important;
}

.table-dark th,
.table-dark td {
    border-color: #2C3E50 !important;
}

.table-dark thead th {
    background-color: #0d0f14 !important;
    border-color: #2C3E50 !important;
}

/* Forms */
.form-control.bg-dark {
    background-color: #0d0f14 !important;
    border-color: #2C3E50 !important;
    color: #fff !important;
}

.form-control.bg-dark:focus {
    background-color: #0d0f14 !important;
    border-color: #EB1616 !important;
    color: #fff !important;
}

.form-select.bg-dark {
    background-color: #0d0f14 !important;
    border-color: #2C3E50 !important;
    color: #fff !important;
}

/* Modais */
.modal-content.bg-secondary {
    background-color: #191C24 !important;
}

.modal-header.border-0 {
    border-bottom: 1px solid #2C3E50 !important;
}

.modal-footer.border-0 {
    border-top: 1px solid #2C3E50 !important;
}

/* Alerts */
.alert-success {
    background-color: #00B74A !important;
    border-color: #00B74A !important;
    color: #fff !important;
}

.alert-danger {
    background-color: #F93154 !important;
    border-color: #F93154 !important;
    color: #fff !important;
}

.alert-info {
    background-color: #39C0ED !important;
    border-color: #39C0ED !important;
    color: #000 !important;
}

.alert-warning {
    background-color: #FFB800 !important;
    border-color: #FFB800 !important;
    color: #000 !important;
}

/* Navbar */
.navbar.bg-secondary {
    background-color: #191C24 !important;
}

/* Sidebar */
.sidebar {
    background-color: #191C24 !important;
}

.sidebar .nav-link {
    color: #6C7293 !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #0d0f14 !important;
    color: #EB1616 !important;
}

.sidebar .navbar-brand {
    color: #EB1616 !important;
}

/* Content area */
.content {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Textos gerais */
body,
h1, h2, h3, h4, h5, h6,
p, span, div, label, td, th {
    color: #ffffff !important;
}

.text-muted {
    color: #6C7293 !important;
}

.text-white {
    color: #ffffff !important;
}

/* Textos em cards */
.bg-secondary,
.bg-secondary * {
    color: #ffffff !important;
}

.bg-dark,
.bg-dark * {
    color: #ffffff !important;
}

/* Badges */
.badge.bg-success {
    background-color: #00B74A !important;
}

.badge.bg-danger {
    background-color: #F93154 !important;
}

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

.badge.bg-info {
    background-color: #39C0ED !important;
}

.badge.bg-secondary {
    background-color: #6C7293 !important;
}

/* Links */
a {
    color: #EB1616 !important;
}

a:hover {
    color: #d01414 !important;
}

/* Dropdown */
.dropdown-menu {
    background-color: #191C24 !important;
    border-color: #2C3E50 !important;
}

.dropdown-item {
    color: #fff !important;
}

.dropdown-item:hover {
    background-color: #0d0f14 !important;
    color: #EB1616 !important;
}

/* Botão de fechar */
.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #191C24;
}

::-webkit-scrollbar-thumb {
    background: #EB1616;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d01414;
}

/* Textos específicos */
.card-title,
.card-text,
.list-group-item,
.table thead th,
.table tbody td,
.form-label,
.form-control::placeholder,
small {
    color: #ffffff !important;
}

/* Títulos e subtítulos */
h6.mb-0,
h6.text-white,
.preview-nome {
    color: #ffffff !important;
}

/* Tabelas DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #ffffff !important;
}

/* Inputs e selects */
.form-control,
.form-select,
input,
select,
textarea {
    color: #ffffff !important;
}

/* Fix para ícones */
i.fa, i.bi {
    opacity: 1 !important;
}
