/* ========================================
   PORTAL THEMING - CSS VARIABLES
   ======================================== */

:root {
    /* Tema por defecto - Portal Paciente */
    --portal-primary: #28a745;
    --portal-secondary: #80BC00;
    --portal-accent: #80BC00;
    --portal-header-bg: #ffffff;
    --portal-header-text: #000000;
    --portal-header-border: #80BC00;
    --portal-sidebar-bg: #f8f9fa;
    --portal-link-color: #28a745;
    --portal-link-hover: #1e7e34;
}

/* Tema Portal Empresarial */
.theme-enterprise {
    --portal-primary: #0066CC;
    --portal-secondary: #003366;
    --portal-accent: #FF9900;
    --portal-header-bg: #ffffff;
    --portal-header-text: #000000;
    --portal-header-border: #FF9900;
    --portal-sidebar-bg: #003366;
    --portal-link-color: #0066CC;
    --portal-link-hover: #004999;
}

/* Aplicar variables a elementos */
.portal-header {
    background-color: var(--portal-header-bg);
    border-bottom: 3px solid var(--portal-header-border);
    color: var(--portal-header-text);
}

.portal-header .navbar-brand,
.portal-header .nav-link {
    color: var(--portal-header-text) !important;
}

.portal-header .nav-link:hover {
    color: var(--portal-accent) !important;
}

.btn-portal-primary {
    background-color: var(--portal-primary);
    border-color: var(--portal-primary);
    color: white;
}

.btn-portal-primary:hover {
    background-color: var(--portal-link-hover);
    border-color: var(--portal-link-hover);
}

a {
    color: var(--portal-link-color);
}

a:hover {
    color: var(--portal-link-hover);
}

/* ===== Estilos Base ===== */
body {
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

small {
    font-size: 12px;
}

/* ===== Header ===== */
header {
    background-color: white !important;
    border-bottom: 4px solid #80BC00 !important;
}

    header .navbar-brand {
        display: flex;
        align-items: center;
    }

.text-danger {
    --bs-text-opacity: 1;
    color: black !important;
}

header .text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header .dropdown-menu {
    background-color: #394046 !important;
    border: none;
}

header .dropdown-item {
    color: #fff;
}

    header .dropdown-item:hover {
        background-color: #424B52 !important;
    }

/* ===== Layout Principal ===== */
.main-container {
    display: flex;
    flex: 1;
    background-color: #f8f9fa;
}

.content {
    background-color: #C7C7C7;
    flex-grow: 1;
    padding: 20px;
}

/* ===== Sidebar ===== */
#sidebar {
    min-width: 250px;
    max-width: 300px;
}

    #sidebar .nav-link {
        color: #464C52;
        position: relative;
        padding: 15px 20px;
    }

        #sidebar .nav-link::after {
            content: '';
            display: block;
            width: 0;
            height: 2px;
            background: #dc3545;
            position: absolute;
            bottom: 0;
            left: 0;
            transition: width 0.3s;
        }

        #sidebar .nav-link.active::after {
            width: 100%;
        }

        #sidebar .nav-link i {
            margin-right: 10px;
        }

/* ===== Footer ===== */
footer {
    background-color: #009F9F;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

    footer a {
        color: #fff;
        font-size: 12px;
        margin-left: 20px;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ===== Menu Box ===== */
.menu-box {
    background-color: #fff;
    color: #394046;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px;
    cursor: pointer;
    transition: transform 1s ease;
}

    .menu-box:hover {
        transform: scale(1.1);
    }

    .menu-box i {
        font-size: 42px;
    }

    .menu-box p {
        margin-top: 10px;
    }

.menu-box-active {
    box-shadow: 0px 0px 10px rgba(0, 255, 33,0.3);
}

.menu-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-box-disabled {
    background-color: #e9ecef;
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
}

    .menu-box-disabled i {
        color: #6c757d !important;
    }

    .menu-box-disabled:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .menu-box-disabled::after {
        content: "(No disponible)";
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 0.8em;
        color: #6c757d;
    }

.menu-box-link.disabled {
    pointer-events: none;
    text-decoration: none;
}

/* ===== Bottom Box ===== */
.bottom-box {
    background-color: #fff;
    color: #394046;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

    .bottom-box h4 {
        padding-bottom: 10px;
    }

    .bottom-box h5 {
        margin-top: 20px;
    }

    .bottom-box p {
        margin-bottom: 0;
    }

/* ===== Welcome Section ===== */
.header {
    background-color: #394046;
    padding: 10px 0;
}

.logo {
    height: 50px;
}

.banner {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('..//images/salud-tecnologia.jpg') no-repeat center center/cover;
    color: white;
}

    .banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(139, 0, 0, 0.7);
    }

    .banner .container {
        position: relative;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
    }

.banner-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-buttons .btn {
    margin: 10px;
}

.banner-line {
    border-color: white;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.banner-text {
    font-size: 18px;
    margin: 20px 0;
}

/* ===== Buttons ===== */
.btn-outline-light {
    border: 2px solid white;
    color: white;
}

    .btn-outline-light:hover {
        background-color: white;
        color: #394046;
    }

.btn-blue {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
}

    .btn-blue:hover {
        background-color: #0056b3;
    }

/* ===== Info Section ===== */
.info-section {
    margin-top: 40px;
}

.nav-tabs .nav-link {
    color: #394046;
}

    .nav-tabs .nav-link.active {
        color: white;
        background-color: #394046;
    }

.titulo-menu-welcome {
    margin-top: 30px;
    font-weight: 700;
}

.parrafo-menu-welcome {
    margin-top: 30px;
    width: 80%;
    margin-bottom: 60px;
}

/* ===== Forms ===== */
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* ===== Carousel Styles ===== */
.carousel {
    min-height: 280px;
}

.carousel-control-prev, .carousel-control-next {
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

    .carousel-control-prev-icon::before, .carousel-control-next-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .carousel-control-prev-icon::before {
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-right: 4px solid white;
        width: 0;
        height: 12px;
    }

    .carousel-control-next-icon::before {
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 4px solid white;
        width: 0;
        height: 12px;
    }

.carousel-item .med-card {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    min-height: 250px;
}

/* ===== Section Styles ===== */
.section {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    position: relative;
}

.section-introduccion {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    position: relative;
}

.section-laboratorio {
    background-color: #fff;
    width: 48%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 12px;
    position: relative;
}

/* ===== Typography & Text Styles ===== */
.icon-class {
    margin-right: 5px;
}

.parrafo-medicamento {
    font-size: 14px;
}

h5 {
    font-weight: 700;
}

h2 {
    font-size: 24px;
    font-weight: 700;
}

/* ===== Data Display Styles ===== */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
}

.texto-fecha {
    font-size: 12px;
    border-bottom: none !important;
}

.datos-hemograma {
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
    padding: 5px 0;
}

/* ===== Navigation & Tabs Styles ===== */
.custom-nav-tabs {
    width: 100%;
    justify-content: space-between;
}

.custom-nav-link {
    width: 100%;
    text-align: center;
}

/* ===== Table Styles ===== */
table i {
    font-size: 24px;
    margin: 5px;
}

/* ===== Utility Classes ===== */
.divider {
    height: 1px;
    background-color: #d3d3d3;
    margin: 8px 0;
}
/* Estilos personalizados para el modal */
#userNotFoundModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#userNotFoundModal .modal-header {
    background-color: #394046;
    color: white;
    border-bottom: none;
}

#userNotFoundModal .modal-title {
    font-weight: bold;
}

#userNotFoundModal .modal-body {
    padding: 20px;
    font-size: 16px;
}

#userNotFoundModal .modal-footer {
    border-top: none;
    padding: 10px 20px;
}

#userNotFoundModal .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
}

    #userNotFoundModal .btn-primary:hover {
        background-color: #0056b3;
    }


.form-control-readonly {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

.form-control:not([readonly]) {
    background-color: #fff;
    cursor: text;
}
.toggle-password {
    border-left: none;
}

    .toggle-password:focus {
        box-shadow: none;
    }

.input-group .form-control:focus + .toggle-password {
    border-color: #86b7fe;
}

/* ========================================
   BOTONES DE ACCIÓN EN TABLAS
   ======================================== */

/* Botones de acción más compactos para tablas */
.btn-action {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    min-width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Iconos dentro de botones de acción */
.btn-action i {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Columna de acciones en tablas */
.table td.actions-column,
.table th.actions-column {
    width: 80px !important;
    min-width: 80px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Espaciado entre botones de acción */
.btn-action + .btn-action {
    margin-left: 0.25rem !important;
}