html{
    height: 100%;
}
body {
    font-family: 'Figtree', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    min-height: 100vh;
    height: 100%;
    background-color: #f5f7fa;
}

main{
    width: 87%;
    height: 98%;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f7fa;
    border-radius: 20px;
    margin-bottom: 2%;
    margin-right: 1%;
    overflow-y: auto;
}

.bigContainer{
    width: 100%;
    height:92%;
    margin: 0;
    display: flex;
    flex-direction: row;
    background: linear-gradient(to bottom right, #1E4682 0%, #1E4682 10%, #25007c 11%, #25007c 100%);
}

/* Sidebar Styles */
.sidebar {
    width: 13%;
    background: linear-gradient(180deg, #1E4682 0%, #25007c 100%);
    height: 100%;
    padding: 1.5rem 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
}

.sidebar .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.btn-outline-primary-custom {
    color: #174fa3;
    border-color: #174fa3;
}
.btn-outline-primary-custom:hover {
    background-color: #174fa3;
    color: white;
    border-color: #174fa3;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #1E4682 75%, #25007c 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    position: sticky;
    top: 0;
    color: white;
    height: 8%;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.header h1:first-child {
    color: var(--primary-color);
    margin-right: 1rem;
}

.logout {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-600);
    transition: all 0.3s ease;
    font-weight: 500;
    color : white !important;
}

.logout:hover {
    color: red !important;
}

.icon {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Offcanvas (Mobile Sidebar) Styles */
.offcanvas {
    background: linear-gradient(180deg, #1E4682 0%, #25007c 100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}

.offcanvas-title {
    color: white;
    font-weight: 600;
}

.offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.offcanvas-body .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
}

.user-info-mobile {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* scrollbar styles */
/* Scrollbar ancho */
main::-webkit-scrollbar {
    width: 15px;
}

/* Fondo del scroll */
main::-webkit-scrollbar-track {
    background: none;
    margin: 20px 0;
    border: solid 3px #f5f7fa;
}

/* Barra que se mueve */
main::-webkit-scrollbar-thumb {
    background: #25007c;
    border-radius: 10px;
    border: solid 3px #f5f7fa;
}

/* Hover sobre la barra */
main::-webkit-scrollbar-thumb:hover {
    background: #1E4682;
}

/* Estilos de contraseña modal crear usuario participante */
#create_password.is-invalid,
#create_password_confirmation.is-invalid {
    border-color: #dc3545;
    z-index: 3;
}

#create_password.is-invalid:focus,
#create_password_confirmation.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Botones específicos para estos campos */
#create_password.is-invalid ~ #togglePasswordBtn,
#create_password_confirmation.is-invalid ~ #togglePasswordConfirmBtn {
    border-color: #dc3545;
    border-left: 0;
}

#create_password:not(.is-invalid) ~ #togglePasswordBtn,
#create_password_confirmation:not(.is-invalid) ~ #togglePasswordConfirmBtn {
    border-color: #ced4da;
    border-left: 0;
}

/* Bordes redondeados específicos */
#create_password,
#create_password_confirmation {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#togglePasswordBtn,
#togglePasswordConfirmBtn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Hover específico */
#togglePasswordBtn:hover,
#togglePasswordConfirmBtn:hover {
    color: #174fa3;
    background-color: white;
}

/* Hover cuando hay error */
#create_password.is-invalid ~ #togglePasswordBtn:hover,
#create_password_confirmation.is-invalid ~ #togglePasswordConfirmBtn:hover {
    border-color: #dc3545;
    background-color: #f8d7da;
}

/* tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
    color: #174fa3 !important;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-container .fas.fa-info-circle {
    font-size: 0.9rem;
}

/* Clase para todos los checkboxes con tu color */
.checkbox-azul:checked {
    background-color: #174fa3;
    border-color: #174fa3;
}

.checkbox-azul:focus {
    border-color: #174fa3;
    box-shadow: 0 0 0 0.25rem rgba(23, 79, 163, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        max-width: calc(100vw - 220px);
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        padding: 1rem;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .user-info {
        display: none !important;
    }
    
    .navbar-toggler {
        display: block !important;
        order: 1;
    }
    
    .header .d-flex.align-items-center {
        justify-content: space-between;
    }
    
    .header .d-flex.justify-content-center {
        order: 2;
        flex-grow: 1;
        justify-content: center;
    }
    
    .header .ms-auto {
        order: 3;
    }
    
    .header .icon {
        height: 35px; 
    }
}


@media (max-width: 900px) {
    .filtro-input-group {
        min-width: 120px;
        max-width: 100%;
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 1050; 
    overflow: visible;
}

#dropdownAlertas + .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.5rem); 
    right: 0;
    z-index: 3000 !important;
    width: 300px;
}

.btn-noti-icon{
    border: 1px solid white !important;
    color: white !important;
    background-color: transparent !important;
}
.btn-noti-icon:hover{
    background-color: white !important;
    color: #174fa3 !important;
}

.header .dropdown {
    position: relative; 
}

.alertas-scroll {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #174fa3 #f1f1f1;
}

.alertas-scroll::-webkit-scrollbar {
    width: 8px;
}

.alertas-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.alertas-scroll::-webkit-scrollbar-thumb {
    background-color: #174fa3;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

#modalSeleccionEmpresa .list-group-item:hover {
    background-color: #174fa3;
    color: white;
}

#modalSeleccionEmpresa .list-group-item i {
    color: #174fa3;
}

#modalSeleccionEmpresa .list-group-item:hover i {
    color: white;
}