﻿:root,
[data-theme-mode="light"],
[data-theme-mode="dark"] {
    --primary-rgb: 228, 50, 43 !important;
    --primary-color: rgb(228, 50, 43) !important;
}

/* =========================
   BOTONES
========================= */
.btn-bd-primary {
    --bs-btn-font-weight: 600;
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-border-radius: 0.5rem;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(var(--primary-rgb), 0.9);
    --bs-btn-hover-border-color: rgba(var(--primary-rgb), 0.9);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(var(--primary-rgb), 0.85);
    --bs-btn-active-border-color: rgba(var(--primary-rgb), 0.85);
}


/* =========================
   LOGIN
========================= */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f6fa;
    overflow: hidden;
}

/* Contenedor para apilar rojo + blanco */
.login-stack {
    position: relative;
}

/* Card rojo detrás */
.login-back {
    position: absolute;
    width: 660px;
    height: 200px;
    background: #e4322b;
    border-radius: 10px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    z-index: 1;
}

/* Card blanco */
.login-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.login-logo {
    max-width: 260px;
    width: 100%;
    display: block;
    margin: 0 auto 1rem;
}


/* =========================
   SIDEBAR (YNEX)
========================= */
.app-sidebar,
.main-sidebar,
.sidebar,
[data-menu-styles="dark"],
.app-sidebar .main-sidebar {
    background-color: #263544 !important;
}

.main-sidebar-header {
    background-color: #263544 !important;
}

    .main-sidebar-header a span {
        font-size: 1.4rem;
    }

.brand-text {
    font-size: 1.6rem;
    font-weight: 600;
}


/* =========================
   CARD SISTEMA
========================= */
.card-sistema {
    cursor: pointer;
    transition: transform 0.2s ease;
    align-items: center;
    justify-content: center;
}

    .card-sistema:hover {
        transform: scale(1.03);
    }

.card-sistema-custom:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card-title:hover {
    align-items:end;
}

/* =========================
   CIRCLE BUTTON
========================= */
.circle-btn {
    background-color: #e4322b;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .circle-btn:hover {
        color: #fff;
        transform: scale(1.1);
    }


/* =========================
   LOADER
========================= */
/* Fondo semi transparente centrado */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    /* Mostrar loader */
    .loader-overlay.show {
        display: flex;
    }

/* Imagen centrada y en rojo */
.loader-img {
    width: 90px;
    filter: invert(1) brightness(0) saturate(100%) sepia(100%) saturate(8000%) contrast(250%) hue-rotate(355deg);
}

/* =========================
   FONDO MODAL
========================= */
.gray-modal {
    background-color: rgb(var(--body-bg-rgb)) !important;
}

/* =========================
   SCROLL TABLAS
========================= */
.scroll-base {
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

    /* WebKit */
    .scroll-base::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .scroll-base::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .scroll-base::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 6px;
    }

        .scroll-base::-webkit-scrollbar-thumb:hover {
            background: #666;
        }

.scroll-y {
    overflow-y: auto;
    overflow-x: hidden;
}

.scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
}

.scroll-both {
    overflow: auto;
}


