/* Contenedor principal de la campana */
.mcn-bell-container {
    position: relative;
    display: inline-block;
    z-index: 999999; /* Mantener la campana visible */
}

/* El ícono de la campana (Font Awesome) */
.mcn-bell-container .mcn-bell-icon {
    display: block;
    cursor: pointer;
    width: 30px; /* Cambia esto */
    height: 30px; /* Cambia esto */
    color: #0073aa; 
    transition: color 0.3s;
    font-size: 30px; /* Cambia esto */
}

.mcn-bell-container .mcn-bell-icon:hover {
    color: #005177;
}

/* Contador de notificaciones no leídas */
.mcn-bell-container .mcn-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3232;
    color: white; 
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

/* Barra lateral de notificaciones */
.mcn-sidebar-wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background-color: #f9f9f9;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000000001;
    display: flex;
    flex-direction: column;
}

body.mcn-sidebar-open .mcn-sidebar-wrap {
    transform: translateX(0);
}

/* Overlay para oscurecer el fondo */
.mcn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 1000000;
}

body.mcn-sidebar-open .mcn-overlay {
    opacity: 1;
    visibility: visible;
}

/* Cabecera de la barra lateral */
.mcn-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.mcn-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mcn-sidebar-close-button {
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    text-decoration: none;
}

.mcn-sidebar-close-button:hover {
    color: #555;
}

/* Contenido de la barra lateral */
.mcn-sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

/* Lista de notificaciones */
.mcn-notification-list {
    display: flex;
    flex-direction: column;
}

.mcn-notification-item {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.mcn-notification-item:hover {
    background-color: #f0f0f0;
}

.mcn-notification-item.read {
    background-color: #fff;
    opacity: 0.7;
}

.mcn-notification-item h4 {
    margin: 0;
    font-size: 14px;
    color: #0073aa;
}

.mcn-notification-item p {
    margin: 5px 0 0;
    font-size: 12px;
}

.mcn-notification-item .mcn-notification-date {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #999;
}

/* Estado de carga */
.loading-message, .error-message, .no-notifications-message {
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Pie de página de la barra lateral */
.mcn-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.mcn-sidebar-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.mcn-sidebar-footer a:hover {
    text-decoration: underline;
}