.NotificationsList {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.notification-card.unread {
    background-color: var(--phoenix-gray-100);
}

.notification-card:hover {
    background-color: #bfbfbf !important;
}

.notification-card .delete-icon {
    display: none;
    cursor: pointer;
    position: absolute;
    top: -5px;
    right: -3px;
    font-size: 16px;
    padding: 0 0 20px 20px;
}

.notification-card .acciones_notificacion {
    margin-bottom: 5px;
    display: flex;
}

.notification-card .acciones_notificacion span {
    padding: 3px 8px;
    border: 1px solid var(--phoenix-gray-300);
    font-size: 0.7rem;
    margin-right: 5px;
    border-radius: 10px;
    width: auto;
    background-color: var(--phoenix-gray-200);
    flex: 1;
    text-align: center;
    /*max-width: 60%;*/
}

.notification-card .acciones_notificacion span:last-child {
    margin-right: 0;
}

.notification-card .acciones_notificacion span:last-of-type {
    margin-right: 0;
}

.notification-card .acciones_notificacion span:hover {
    background: var(--phoenix-link-color);
    color: #fff;
    border: 1px solid var(--phoenix-link-color);
}

.notification-card:hover .delete-icon {
    display: block;
}

/* Contenedor principal de notificaciones flotantes */
#floatingNotificationBar {
    position: fixed;
    top: calc( var(--phoenix-navbar-top-height) + 15px );
    right: 1rem;
    left: auto;
    transform: none;
    z-index: 1025;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 80vh;
    overflow-y: auto;
    align-items: stretch;
    padding: 0.25rem;
    width: min(28rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    pointer-events: none;
}

/* Notificación individual */
.floating-notif {
    position: relative;
    width: 100%;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.82), rgba(248,250,252,0.68)),
        rgba(255,255,255,0.72);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    cursor: default;
    animation: slideIn 0.4s ease forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.floating-notif:hover {
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
    transform: translateY(-2px);
}

.floating-notif__shell {
    position: relative;
    width: 100%;
}

.floating-notif__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #0ea5e9, #14b8a6);
}

.floating-notif__content {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1rem 0.95rem 1.05rem;
}

.floating-notif__media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.floating-notif__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.floating-notif__body {
    min-width: 0;
}

.floating-notif__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    justify-content: space-between;
}

.floating-notif__title {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-right: auto;
    word-break: break-word;
}

.floating-notif__message {
    margin: 0.35rem 0 0;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word;
}

.floating-notif__close {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    margin: -0.2rem -0.15rem 0 0;
    opacity: 0.7;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.5);
}

.floating-notif__close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Entrada animada */
@keyframes slideIn {
    from {
        transform: translateY(-14px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Salida animada */
@keyframes slideOut {
    to {
        transform: translateY(-14px) scale(0.98);
        opacity: 0;
        filter: blur(4px);
    }
}

/* Adaptación a pantallas móviles */
@media (max-width: 767px) {
    #floatingNotificationBar {
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.85rem;
        width: auto;
        max-width: none;
    }

    .floating-notif {
        border-radius: 1rem;
    }

    .floating-notif__content {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.9rem 0.9rem 0.85rem 0.95rem;
    }

    .floating-notif__avatar {
        width: 40px;
        height: 40px;
    }
}

.acciones_notificacion span.btn-notif-action {
    text-align: center;
    width: auto;
    max-width: 100%;
    padding: 0.42rem 0.8rem;
    margin: 0;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    box-shadow: none;
    background-color: rgba(15, 23, 42, 0.78);
    color: white;
    white-space: normal;
    word-break: break-word;
}

.acciones_notificacion span.btn-notif-action:hover {
    border-color: rgba(14, 165, 233, 0.55);
    background-color: rgba(15, 23, 42, 0.92);
}

.acciones_notificacion {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.75rem;
}


@keyframes highlightLocation {
    0% {
        background-color: #fff8e1;
        color: #d35400;
    }
    100% {
        background-color: transparent;
        color: inherit;
    }
}

.highlight-location {
    animation: highlightLocation 1s ease-in-out;
    animation-fill-mode: forwards;
    position: relative;
    z-index: 0;
}
