/* ===========================
   PANEL DESKTOP (NO TOCAR)
=========================== */

.panel-notificaciones{
    position: fixed;
    top: var(--top-notificaciones, 160px);
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

.panel-notificaciones.activo{
    display: flex;
}

.panel-header{
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.panel-header h3{
    margin: 0;
    font-size: 18px;
}

.cerrar{
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 20px;
}

.filtros{
    display: flex;
    gap: 8px;
}

.filtro{
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: #f0f2f5;
    cursor: pointer;
    font-size: 13px;
}

.filtro.activo{
    background: black;
    color: white;
}

.panel-body{
    overflow-y: auto;
    padding: 10px;
}


.notificacion-item{
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.notificacion-item:hover{
    background: #f0f2f5;
}

.notificacion-no-leido{
    background: #e7f3ff;
}

.separador-notificaciones{
    border: none;
    height: 1px;
    background: #e4e6eb;
    margin: 12px 0 16px 0;
}

.notificacion-item img{
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.icono-tipo{
    position: absolute;
    bottom: 5px;
    left: 45px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: red;
    padding-top: 4px;
}

.icono-padrino-notif-usuario {
    background: #2dcb6f;
    color: white;
}

.notificacion-item .nombre-notif {
    color: red;
}

.solicitud-rechazada {
    color: red;
}

.solicitud-aceptada {
    color: #2dcb6f;
}

.acciones-padrino{
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.btn-aceptar{
    background: #1877f2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-rechazar{
    background: #e4e6eb;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-aceptar:hover{
    background: #166fe5;
}

.btn-rechazar:hover{
    background: #d8dadf;
}

/* ===========================
   OVERLAY
=========================== */

#overlayNotificaciones{
    position: fixed;
    top: 0px; /* debajo del header */
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
    z-index: 1001;
}

#overlayNotificaciones.activo{
    display: block;
}

/* ===========================
   BOTON DE ELIMINAR
=========================== */

.menu-notificacion{
    position: relative;
    display: flex;
    align-items: start;
}

.btn-menu{
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.dropdown-menu{
    position: absolute;
    right: 0;
    top: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
}

.dropdown-menu div{
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu div:hover{
    background: #f0f2f5;
}

.titulo-pendientes{
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #1877f2;
}

/* ===========================
   🔥 RESPONSIVE MOBILE
=========================== */

@media (max-width: 768px){

    .panel-notificaciones{
        right: 0;
        left: auto;
        width: 100%;
        height: calc(100vh - 70px);
        max-height: none;
        border-radius: 0;
        transform: translateX(100%); /* oculto hacia la derecha */
        transition: transform 0.3s ease;
        display: flex; /* necesario para animación */
    }

    .panel-notificaciones.activo{
        transform: translateX(0); /* entra de derecha a izquierda */
    }

    #overlayNotificaciones{
        top: 70px;
        height: calc(100vh - 70px);
    }

}