﻿
.emoji-menu {
    position: fixed;
    top: 60px;
    right: 10px;
    background: #1c2833;
    border-radius: 50px;
    padding: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 45px;
    max-height: 45px;
}

    .emoji-menu.expanded {
        max-height: 280px;
    }

.emoji-trigger, .emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    height: 30px;
    position: relative;
}

.emoji-item {
    opacity: 0;
    transform: translateY(-10px);
}

.emoji-menu.expanded .emoji-item {
    opacity: 1;
    transform: translateY(0);
}

.emoji-item:hover {
    transform: scale(1.2);
    color: #3498db;
}

.emoji-trigger i {
    transition: transform 0.3s ease;
}

.emoji-menu.expanded .emoji-trigger i {
    transform: rotate(180deg);
}

.menu-flotante-panel {
    display: none;
    position: fixed;
    top: 60px;
    right: 70px;
    background: #1c2833;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.menu-flotante-panel .panel-title {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.emo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .emo-table th,
    .emo-table td {
        padding: 8px;
        border: 1px solid #2c3e50;
        color: #fff;
    }

    .emo-table th {
        background: #2c3e50;
        font-weight: bold;
    }

    .emo-table tr:hover {
        background: #2c3e5087;
    }

.habitos-panel label {
    color: #ffffff !important;
    font-weight: bold;
}

/* tooltip*/

.tooltip {
    position: absolute !important;
    z-index: 999999 !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

    .tooltip.in {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .tooltip.left {
        margin-left: -15px !important;
    }

.tooltip-inner {
    max-width: 200px;
    padding: 8px !important;
    background-color: #000 !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 4px;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #000 !important;
}


/* Modal */
/* ----- */
.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1c2833;
    border-radius: 8px;
    padding: 20px;
    z-index: 1060;
    width: 40%;
    max-width: 800px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.custom-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2c3e50;
}

.custom-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

    .custom-modal-close:hover {
        color: #3498db;
    }

.custom-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #2c3e50;
    text-align: right;
}

/* Acordeon */
/* -------- */
/* Acordeon específico del modal personalizado */
.custom-modal .box-group .panel {
    border: none;
    border-radius: 4px;
    margin-bottom: 8px;
    background: transparent;
}

.custom-modal .box-header {
    padding: 0px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-modal .box-success .box-header {
    background: #27ae60;
}

.custom-modal .box-danger .box-header {
    background: #e74c3c;
}

.custom-modal .box-primary .box-header {
    background: #3498db;
}

.custom-modal .box-title {
    margin: 0;
    display: block;
}

    .custom-modal .box-title a {
        color: #fff;
        text-decoration: none;
        display: block;
        width: 100%;
        font-size: 15px;
        padding: 12px 15px;
    }

        .custom-modal .box-title a:hover {
            color: rgba(255, 255, 255, 0.9);
        }

.custom-modal .panel-collapse {
    background: #2c3e50;
    border-radius: 0 0 4px 4px;
    margin-top: 2px;
}

.custom-modal .box-body {
    padding: 15px;
    color: #ecf0f1;
}

.custom-modal .table-bordered {
    border: 1px solid #34495e;
}

    .custom-modal .table-bordered > thead > tr.info > td {
        background-color: #2980b9 !important;
        color: #fff;
        border: 1px solid #2c3e50;
    }

    .custom-modal .table-bordered > tbody > tr > td {
        border: 1px solid #34495e;
    }

    .custom-modal .table-bordered > tbody > tr:hover {
        background-color: rgba(52, 73, 94, 0.5);
    }

.custom-modal #listResLab p,
.custom-modal #listDocumentos p {
    margin: 8px 0;
    padding: 8px;
    background: rgba(52, 73, 94, 0.5);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal .form-control {
    background-color: #34495e;
    border: 1px solid #2c3e50;
    color: #fff;
    margin-bottom: 10px;
}

/* Estilos mejorados específicos para los paneles de alergias y antecedentes */
.alergias-panel .table,
.antecedentes-panel .table {
    background-color: #2c3e50;
    color: #fff;
    border: 1px solid #34495e;
}

.alergias-panel .table th,
.antecedentes-panel .table th {
    background-color: #3498db !important;
    color: #fff;
    border-color: #34495e;
    font-weight: bold;
}

.alergias-panel .table td,
.antecedentes-panel .table td {
    border-color: #34495e;
}

.alergias-panel .table tbody tr:hover,
.antecedentes-panel .table tbody tr:hover {
    background-color: #34495e;
}

.alergias-panel select,
.antecedentes-panel select {
    background-color: #34495e;
    color: #fff;
    border: 1px solid #2c3e50;
}

.alergias-panel .btn-min {
    margin: 40px 0;
}

.alergias-panel .form-control,
.antecedentes-panel .form-control {
    background-color: #34495e;
    border: 1px solid #2c3e50;
    color: #fff;
}

.antecedentes-panel .box-group .panel {
    border: none;
    border-radius: 4px;
    margin-bottom: 8px;
    background: transparent;
}

.antecedentes-panel .box-header {
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.antecedentes-panel .box-success .box-header {
    background: #27ae60;
}

.antecedentes-panel .box-danger .box-header {
    background: #e74c3c;
}

.antecedentes-panel .box-title a {
    color: #fff;
    display: block;
    width: 100%;
    text-decoration: none;
}

.antecedentes-panel .panel-collapse {
    background: #2c3e50;
    border-radius: 0 0 4px 4px;
    margin-top: 2px;
    padding: 10px;
}

.antecedentes-panel .control-sidebar-heading {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.antecedentes-panel .fa-plus-square-o {
    color: #2ecc71;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.antecedentes-panel .fa-plus-square-o:hover {
    transform: scale(1.1);
}
.antecedentes-panel .box-title {
    display: block;
}

.antecedentes-panel .box-title a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 12px 15px;
}