/* Estilos para el contenedor de notificaciones */
#history-list {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para el mensaje de carga */
.loading, .no-notifications, .error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.error {
    color: #d32f2f;
}

/* Estilos para las tarjetas de notificación */
.notification-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Encabezado de la notificación */
.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.notification-time {
    font-size: 0.85rem;
    color: #666;
}

/* Contenido de la notificación */
.notification-content {
    padding: 1.25rem;
}

/* Contenedor de imagen */
.image-container {
    margin: 0.5rem 0 1rem;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.image-container:hover {
    opacity: 0.9;
}

/* Imagen de notificación */
.notification-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    max-height: 400px;
    object-fit: contain;
}

/* Mensaje de notificación */
.notification-message {
    margin: 1rem 0 0;
    color: #444;
    line-height: 1.5;
}

/* Detalles adicionales */
.notification-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
    font-size: 0.9rem;
    color: #666;
}

.notification-details p {
    margin: 0.25rem 0;
}

/* Modal de imagen */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal.active {
    display: flex;
    opacity: 1;
}

#image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.close-btn:hover {
    color: #ff6b6b;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    #history-list {
        padding: 0.5rem;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-time {
        font-size: 0.8rem;
    }
    
    .notification-content {
        padding: 1rem;
    }
}
