/**
 * Mazana Moneo - Custom Theme Colors
 * Primary Color: #CB0912 (Rojo corporativo)
 */

:root {
    --bs-primary: #CB0912;
    --bs-primary-rgb: 203, 9, 18;
    --bs-blue: #CB0912;
    --bs-link-color: #CB0912;
    --bs-link-hover-color: #a30710;
}

/* Logo Text */
.logo-text {
    color: #CB0912 !important;
}

/* Links */
a {
    color: #CB0912;
}

a:hover {
    color: #a30710;
}

/* Buttons Primary */
.btn-primary {
    background-color: #CB0912 !important;
    border-color: #CB0912 !important;
}

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

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

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

/* Menu Items Active/Hover - Horizontal */
.topbar-nav .metismenu > li > a:hover,
.topbar-nav .metismenu > li > a:focus,
.topbar-nav .metismenu > li > a:active,
.topbar-nav .metismenu > li.mm-active > a {
    background-color: #CB0912 !important;
    color: #fff !important;
}

.topbar-nav .metismenu > li > a:hover .parent-icon,
.topbar-nav .metismenu > li > a:hover .menu-title,
.topbar-nav .metismenu > li > a:focus .parent-icon,
.topbar-nav .metismenu > li > a:focus .menu-title,
.topbar-nav .metismenu > li.mm-active > a .parent-icon,
.topbar-nav .metismenu > li.mm-active > a .menu-title {
    color: #fff !important;
}

.topbar-nav .metismenu ul a:hover,
.topbar-nav .metismenu ul a.mm-active {
    background: #CB0912 !important;
    color: #fff !important;
}

/* Sidebar Vertical - Menu Items Active/Hover */
.sidebar-wrapper .metismenu > li > a:hover,
.sidebar-wrapper .metismenu > li > a:focus,
.sidebar-wrapper .metismenu > li.mm-active > a {
    background-color: #CB0912 !important;
    color: #fff !important;
}

.sidebar-wrapper .metismenu > li > a:hover .parent-icon,
.sidebar-wrapper .metismenu > li > a:hover .menu-title,
.sidebar-wrapper .metismenu > li.mm-active > a .parent-icon,
.sidebar-wrapper .metismenu > li.mm-active > a .menu-title {
    color: #fff !important;
}

.sidebar-wrapper .metismenu ul a:hover,
.sidebar-wrapper .metismenu ul a.mm-active {
    background-color: #CB0912 !important;
    color: #fff !important;
}

.sidebar-wrapper .metismenu ul a:hover::before,
.sidebar-wrapper .metismenu ul a.mm-active::before {
    background: #fff !important;
}

.sidebar-wrapper .metismenu ul a::before {
    background: #CB0912 !important;
}

/* Sidebar toggle icon */
.sidebar-wrapper .toggle-icon:hover {
    color: #CB0912 !important;
}

/* Sidebar header separator */
.sidebar-header {
    border-bottom: 1px solid rgba(203, 9, 18, 0.1);
}

/* Menu labels in sidebar */
.sidebar-wrapper .menu-label {
    color: #CB0912 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

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

.page-item.active .page-link {
    background-color: #CB0912;
    border-color: #CB0912;
}

/* Form Elements */
.form-control:focus,
.form-select:focus {
    border-color: #CB0912;
    box-shadow: 0 0 0 0.25rem rgba(203, 9, 18, 0.25);
}

.form-check-input:checked {
    background-color: #CB0912;
    border-color: #CB0912;
}

.form-switch .form-check-input:checked {
    background-color: #CB0912;
}

/* Text Primary */
.text-primary {
    color: #CB0912 !important;
}

/* Background Primary */
.bg-primary {
    background-color: #CB0912 !important;
}

/* Border Primary */
.border-primary {
    border-color: #CB0912 !important;
}

/* Cards with border */
.card.border-start.border-info {
    border-color: #CB0912 !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(203, 9, 18, 0.1);
    border-color: rgba(203, 9, 18, 0.2);
    color: #CB0912;
}

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

/* Nav Pills */
.nav-pills .nav-link.active {
    background-color: #CB0912;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #CB0912;
}

/* List group */
.list-group-item.active {
    background-color: #CB0912;
    border-color: #CB0912;
}

/* Back to top button */
.back-to-top {
    background: #CB0912;
}

.back-to-top:hover {
    background: #a30710;
}

/* User box hover */
.user-box:hover {
    background: rgba(203, 9, 18, 0.05);
}

/* Widgets icons with gradient */
.widgets-icons-2.bg-gradient-scooter {
    background: linear-gradient(to right, #CB0912, #e63946) !important;
}

/* Search bar focus */
.search-control:focus {
    border-color: #CB0912 !important;
}

/* Breadcrumb link */
.breadcrumb a {
    color: #CB0912;
}

/* Table hover */
.table-hover tbody tr:hover {
    background-color: rgba(203, 9, 18, 0.05);
}

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

/* Light primary background */
.bg-light-primary {
    background-color: rgba(203, 9, 18, 0.1) !important;
}

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

/* Spinner */
.spinner-border.text-primary {
    color: #CB0912 !important;
}

/* Authentication header gradient */
.authentication-header {
    background: linear-gradient(to right, #CB0912, #e63946);
}

/* Selection color */
::selection {
    background-color: #CB0912;
    color: #fff;
}

/* Card Headers - Estilo corporativo */
.card-header {
    background-color: #CB0912 !important;
    color: #fff !important;
    border-bottom: none;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header .card-title,
.card-header p,
.card-header small,
.card-header span,
.card-header a {
    color: #fff !important;
}

.card-header .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.card-header .btn-close {
    filter: invert(1);
}

/* Toggle Icon Sidebar */
.toggle-icon {
    color: #CB0912 !important;
}

.toggle-icon:hover {
    color: #a30710 !important;
}
