/* 
 * Hilda Ibarra SGC - GLOBAL STYLESHEET
 * Corporate Gray Identity: #504b4a
 */

:root {
    --bs-primary: #504b4a !important;
    --primary: #504b4a !important;
    --primary-dark: #3c3736 !important;
    --primary-rgb: 80, 75, 74 !important;
    --secondary: #6b6463 !important;
    --bs-secondary: #6b6463 !important;
    --bs-info: #827877 !important;
    --info: #827877 !important;
}

/* =========================================
   SIDEBAR MENU OVERRIDES (Orange highlights)
   ========================================= */
.metismenu li.mm-active>a {
    background-color: rgba(80, 75, 74, 0.08) !important;
    color: #504b4a !important;
    font-weight: 600 !important;
}

.metismenu li.mm-active>a i,
.metismenu li.mm-active>a svg,
.metismenu li.mm-active>a span,
.metismenu li.mm-active>a:after {
    color: #504b4a !important;
}

.metismenu li:hover>a i,
.metismenu li:hover>a span,
.metismenu li:hover>a {
    color: #504b4a !important;
}

/* =========================================
   COMPONENTS & BRANDING
   ========================================= */
.brand-logo .brand-title h2 {
    color: #504b4a !important;
}

.btn-primary,
.bg-primary,
.nav-control .hamburger.is-active .line,
.nav-control .hamburger .line {
    background-color: #504b4a !important;
    border-color: #504b4a !important;
    color: #ffffff !important;
}

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

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

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

.bg-primary-light {
    background-color: rgba(80, 75, 74, 0.1) !important;
}

/* Secondaries / Info */
.text-info {
    color: #F5A623 !important;
}

.border-info {
    border-color: #F5A623 !important;
}

.bg-info-light {
    background-color: rgba(245, 166, 35, 0.1) !important;
}

.text-secondary {
    color: #6b6463 !important;
}

.border-secondary {
    border-color: #6b6463 !important;
}

.bg-secondary-light {
    background-color: rgba(107, 100, 99, 0.1) !important;
}

.bg-warning-light {
    background-color: rgba(255, 184, 0, 0.1) !important;
}

.bg-success-light {
    background-color: rgba(43, 193, 85, 0.1) !important;
}

/* =========================================
   PRELOADER - Logo con animación de onda
   ========================================= */
/* Ocultamos la ripple original */
.lds-ripple {
    display: none !important;
}

/* Contenedor del preloader personalizado */
#preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #fff;
}

.hi-preloader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.hi-preloader img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.hi-preloader .wave-ring {
    position: absolute;
    border: 3px solid #504b4a;
    border-radius: 50%;
    animation: waveExpand 2s ease-out infinite;
    opacity: 0;
}

.hi-preloader .wave-ring:nth-child(2) {
    animation-delay: 0s;
}

.hi-preloader .wave-ring:nth-child(3) {
    animation-delay: 0.5s;
}

.hi-preloader .wave-ring:nth-child(4) {
    animation-delay: 1.0s;
}

@keyframes waveExpand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 0.9;
        border-width: 3px;
    }
    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
        border-width: 1px;
    }
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* =========================================
   UTILITIES
   ========================================= */
.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* =========================================
   BREADCRUMBS OVERRIDES
   ========================================= */
.page-titles .breadcrumb li a,
.page-titles .breadcrumb li.active a,
.breadcrumb-item.active,
.breadcrumb-item.active a,
.breadcrumb-item+.breadcrumb-item::before,
ol.breadcrumb li,
ol.breadcrumb li a {
    color: #6e6e6e !important;
}

ol.breadcrumb li a:hover {
    color: #504b4a !important;
}

/* =========================================
   SWITCHES & CHECKBOXES (Pointer cursor)
   ========================================= */
.form-check-input,
.form-check-label,
.form-switch .form-check-input {
    cursor: pointer !important;
}

/* Checked state */
.form-check-input:checked {
    background-color: #504b4a !important;
    border-color: #504b4a !important;
}

/* For labels within switches specifically */
.form-switch .form-check-label {
    cursor: pointer !important;
}

/* =========================================
   NAV HEADER & SIDEBAR BRANDING
   ========================================= */
.nav-header {
    border-bottom-color: rgba(80, 75, 74, 0.15) !important;
}

/* Profile dropdown border */
#customProfileDropdown {
    border-color: #504b4a !important;
}

/* SweetAlert confirm button */
.swal2-confirm {
    background-color: #504b4a !important;
    border-color: #504b4a !important;
}

/* DataTables pagination and info */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px !important;
    margin-left: 5px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    color: #333 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8f9fa !important;
    color: #504b4a !important;
    border-color: #504b4a !important;
}

.dataTables_wrapper .dataTables_paginate span .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #504b4a !important;
    border-color: #504b4a !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate span .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #3c3736 !important;
    border-color: #3c3736 !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info {
    color: #666 !important;
    font-size: 13px !important;
    padding-top: 15px !important;
}

/* Select2 selection highlight */
.select2-container--default .select2-results__option--highlighted {
    background-color: #504b4a !important;
}