/* ================= PANEL DE NOTIFICACIONES ================= */

.notificaciones-wrapper {
    min-height: calc(100vh - 60px);
    background-color: #1f1f1f;
    padding: 40px 20px;
}

.notificaciones-header {
    text-align: center;
    margin-bottom: 40px;
}

.notificaciones-header h1 {
    color: #00ffe5;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.notificaciones-page {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ================= PANEL INDIVIDUAL ================= */

.notificaciones-panel {
    background-color: #2b2b2b;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #03433e;
}

.panel-header h2 {
    color: #eff5f5;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.badge-count {
    background: linear-gradient(135deg, #03433e, #055955);
    color: #00ffe5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #00ffe5;
}

/* ================= LISTA DE NOTIFICACIONES ================= */

.notificaciones-lista {
    display: grid;
    gap: 16px;
}

.notificacion {
    background-color: #1f1f1f;
    border: 1px solid #3a3a3a;
    border-left: 4px solid #03433e;
    border-radius: 8px;
    padding: 16px 18px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notificacion:hover {
    border-left-color: #00ffe5;
    background-color: #252525;

}

.notificacion.no-leida {
    background-color: #242828;
    border-left-color: #00ffe5;
    border-color: #00ffe5;
}

.notificacion.no-leida:hover {
    background-color: #2a3030;
    box-shadow: 0 4px 16px rgba(0, 255, 229, 0.15);
}

/* Badge "Nuevo" */
.badge-nuevo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #00ffe5, #03a89e);
    color: #1f1f1f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 255, 229, 0.3);
}

/* ================= CONTENIDO DE NOTIFICACIÓN ================= */

.noti-titulo {
    color: #99dada;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding-right: 60px;
    /* Espacio para el badge */
}

.notificacion.no-leida .noti-titulo {
    color: #99dada;
}

.noti-mensaje {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.noti-fecha {
    color: #888888;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.btn-eliminar.noti-delete-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border: 1px;
    border-radius: 8px;
    background: #6b1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;

}

.btn-eliminar.noti-delete-btn:hover {
    border-color: #ff6f6f;
    transform: translateY(-1 bacpx);
    background-color: #db4242;
}

.btn-eliminar.noti-delete-btn:active {
    transform: scale(0.96);
}

.btn-eliminar.noti-delete-btn:focus-visible {
    outline: 2px solid #ff8c8c;
    outline-offset: 2px;
}

.icon-trash.noti-trash-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ================= ESTADO VACÍO ================= */

.noti-vacio {
    background-color: transparent;
    border: 2px dashed #3a3a3a;
    border-left: 2px dashed #3a3a3a;
    padding: 40px 20px;
    text-align: center;
}

.noti-vacio:hover {
    background-color: transparent;
    border-left: 2px dashed #3a3a3a;
    box-shadow: none;
    cursor: default;
}

.noti-vacio p {
    color: #666666;
    font-size: 1rem;
    margin: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 960px) {
    .notificaciones-page {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .notificaciones-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .notificaciones-wrapper {
        padding: 30px 15px;
    }

    .notificaciones-panel {
        padding: 20px;
    }

    .panel-header h2 {
        font-size: 1.2rem;
    }

    .noti-titulo {
        font-size: 1rem;
        padding-right: 50px;
    }

    .badge-nuevo {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .notificaciones-header h1 {
        font-size: 1.5rem;
    }

    .notificaciones-panel {
        padding: 16px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .badge-count {
        align-self: flex-end;
    }

    .notificacion {
        padding: 14px 16px;
    }

    .noti-titulo {
        font-size: 0.95rem;
        padding-right: 0;
        margin-bottom: 6px;
    }

    .badge-nuevo {
        position: static;
        display: inline-block;
        margin-left: 8px;
    }

    .noti-mensaje {
        font-size: 0.9rem;
    }

    .noti-fecha {
        font-size: 0.8rem;
    }
}