/*Input Your Custom CSS Here*/
/* Estilo base para alertas */
.alert {
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Iconos alineados */
.alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* Botón de cierre */
.alert .btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Tipos de alertas */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-primary {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #664d03;
}

/* Opcional: Material shadow para las alertas */
.material-shadow {
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1), 0 4px 5px rgba(0, 0, 0, 0.06);
}

/* Animación para fade-in y fade-out */
.alert.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.alert.fade.show {
    opacity: 1;
}

.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.video-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.3s ease-in-out;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: #f0f0f0;
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: #333;
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

 /* Estilo para el botón de inicio de sesión */
    .login-btn {
        margin-left: 10px;
    }
    
    .login-btn .btn-login {
        background-color: #333;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        font-weight: 500;
    }
    
    .login-btn .btn-login i {
        margin-right: 5px;
    }
    
    .login-btn .btn-login:hover {
        background-color: #555;
        transform: translateY(-2px);
    }
    
    /* Ajuste para alineamiento en el menú */
    #main-menu ul li.login-btn a {
        padding: 8px 15px;
        line-height: normal;
    }
    
     /* Estilo simple para el enlace de login */
    .login-link {
        background-color: #2c3e50;
        color: white !important;
        padding: 8px 16px !important;
        border-radius: 4px;
        display: inline-block;
        margin: 0 10px;
    }
    
    .login-link i {
        margin-right: 5px;
    }
    
    /* Asegurarse que no herede estilos extraños del menú */
    #main-menu ul li a.login-link {
        color: white !important;
    }
    
    #main-menu ul li a.login-link:hover {
        background-color: #34495e;
    }
    
    /* Versión para móvil */
    @media (max-width: 767px) {
        .login-btn {
            margin-left: 0;
        }
        
        .login-btn .btn-login {
            width: 100%;
            justify-content: center;
            margin-top: 10px;
        }
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Opcional: Estilo para prevenir scroll del body cuando el popup está activo */
body.popup-active {
    overflow: hidden;
}

/* Estilos para la tabla desde el movil */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }
    .table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        background-color: #f8f9fa;
    }
    .table tbody td {
        display: block;
        text-align: center;
        padding: 0.5rem 0;
    }
    .table tbody td .btn {
        width: 100%;
    }
}